[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl-Modules] Question about PAUSE



At 11.38 -0500 1999.03.08, Arved Sandstrom wrote:
>Other than resolving to doublecheck a .tgz on my own machine with
>'installme', before I upload, which I neglected to do for this one (of
>course), I have another question - PAUSE evidently doesn't delete stuff
>for 48 hours or so. So I have to assume that until Wednesday evening I
>can't upload a fix? Correct? But after that it's OK?

You can upload a fix at any time, but you can never again upload a file of
the same name (without special dispensation from Andreas).  If you uploaded
"Bit-Vector-5.6-bin-1-MacOS.tgz", your next upload should probably be
"Bit-Vector-5.6-bin-2-MacOS.tgz".



>Any tips or comments? Paul and Chris, you guys have done this a lot - you
>use a checklist, or have some scripts in play? Just curious.

I do this:

1.  Copy a clean distribution folder
2.  Rename it to something like "Module-Foo-bin-1-MacOS" that fits in 27
    characters or less
3.  Create a new folder called Mac_changed inside it
4.  Take files I edited and move the originals to Mac_changed
5.  Copy my changed versions to where those files were
6.  Copy blib into the distribution folder
7.  (I have not done this yet, though I am going to start)
      7a. Make new folder called Mac_makefile
      7b. Copy Makefile.mk and *.makeout to Mac_makefile
8.  Add info to the top of the README

I suppose most of this could be automated.  A script could do the
following, given two paths (one for $new distribution folder, one for $port
folder).

1.  mkdir "$new:Mac_changed"
2.  mkdir "$new:Mac_makefile"
3.  find(sub {
        my $file = $File::Find::name;
        (my $pfile = $file) =~ s/^$new/$port/;
        unless (compare_files($file, $pfile)) {
            move($file, "$port:Mac_changed:");
            copy($pfile, $file);
        }
    }, $new);

    i.e., for each file in the new directory, move it to Mac_changed and copy
    the one in the port directory in its place if the files are not the same.

4.  copy_dir "$port:blib", $new
5.  copy "$port:Makfile.mk", "$new:Mac_makefile:"
6.  chdir $port; for (<*.makeout>) {copy $_, "$new:Mac_makefile:"}

Then just edit the README and make sure the directory is named well.  Seems
like that should all do the trick.

--
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10  1FF77F13 8180B6B6'])

==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-modules-request@macperl.org