Update of /cvsroot/fink/fink/perlmod/Fink In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25609/perlmod/Fink
Modified Files: ChangeLog Engine.pm Log Message: Improvements to the snapshot command, based heavily on suggestions from dmacks. Retroactive additions to the ChangeLog. Index: Engine.pm =================================================================== RCS file: /cvsroot/fink/fink/perlmod/Fink/Engine.pm,v retrieving revision 1.238 retrieving revision 1.239 diff -u -d -r1.238 -r1.239 --- Engine.pm 9 Feb 2005 15:56:02 -0000 1.238 +++ Engine.pm 11 Feb 2005 19:40:11 -0000 1.239 @@ -2337,9 +2337,9 @@ my ($pname, $package, @installed, $snapdir, $outfile, @time, $snappkg, $snapver, $snaprev, $snapdep); - eval "use POSIX qw(strftime);"; + require POSIX; $snappkg = "fink-snapshot"; - $snapver = strftime("%Y.%m.%d.%H", localtime); + $snapver = POSIX::strftime("%Y.%m.%d.%H", localtime); $snaprev = "1"; $snapdir = "/tmp"; foreach $pname (Fink::Package->list_packages()) { @@ -2364,17 +2364,39 @@ License: Restrictive Description: Snapshot of Fink packages for $user[6] Maintainer: $user[6] <[EMAIL PROTECTED]> +DescUsage: << + Instructions for how to use this snapshot to replicate your fink + environment on another computer: + + * Install Fink on the target computer + * Chdir to the Fink install directory (e.g. %p) + * Copy this file to fink/dists/local/main/finkinfo + * Make sure local/main is in yor etc/fink.conf file + * You might need to run "fink index" + * Run "fink build fink-snapshot" + * Do NOT try to "fink install" this package + + Note: This process may not be 100% repeatable. If the destination + machine has a different version of Fink or a different set of + user-installed "virtual" packages (e.g. an X11 server from Apple or + from X.org), some packages might not build exactly the same. But + in general, the results should be good. +<< Homepage: http://fink.sourceforge.net/ -Depends: << +BuildDepends: << $snapdep << +PreInstScript: << + echo "This package is not intended to be installed!" + echo "Please read the DescUsage for this package" + echo "Aborting install now..." + exit 1 +<< EOF close(SNAP) or die "can't create file $outfile\n"; print <<"EOF"; Wrote $outfile -To use this file: - copy to /sw/fink/dists/local/main/finkinfo - run "fink build fink-snapshot" +See the DescUsage for how to use this file EOF } Index: ChangeLog =================================================================== RCS file: /cvsroot/fink/fink/perlmod/Fink/ChangeLog,v retrieving revision 1.854 retrieving revision 1.855 diff -u -d -r1.854 -r1.855 --- ChangeLog 10 Feb 2005 00:52:13 -0000 1.854 +++ ChangeLog 11 Feb 2005 19:40:06 -0000 1.855 @@ -1,3 +1,7 @@ +2005-02-09 Chris Dolan <[EMAIL PROTECTED]> + + * Engine.pm: improvements for snapshot command + 2005-02-09 Daniel Macks <[EMAIL PROTECTED]> * PkgVersion.pm: lol_remove_self(): skip clusters after removing them @@ -53,6 +57,10 @@ * Engine.pm: Alphabetize and remove duplicates in output of show-deps. +2005-02-04 Chris Dolan <[EMAIL PROTECTED]> + + * Engine.pm: Add snapshot command + 2005-02-03 Daniel Macks <[EMAIL PROTECTED]> * PkgVersion.pm: Change set_buildlock so that Depends are not ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Fink-commits mailing list Fink-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-commits