Update of /cvsroot/fink/scripts/pdb
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5733

Modified Files:
        dump 
Log Message:
Add --architecture flag (requires cutting-edge basepath checkout)


Index: dump
===================================================================
RCS file: /cvsroot/fink/scripts/pdb/dump,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- dump        4 Apr 2006 21:52:10 -0000       1.28
+++ dump        4 Apr 2006 22:48:49 -0000       1.29
@@ -42,7 +42,8 @@
     GetOptions(
        'distribution=s' => \$distribution,
        'tree=s'         => \$tree,
-       'release=s'      => \$release
+       'release=s'      => \$release,
+       'architecture=s' => \$architecture
        )
        or die "$0: Bad syntax\n";
 } else {
@@ -55,6 +56,7 @@
 defined $distribution or $distribution = "10.3";
 defined $tree         or $tree         = "stable";
 defined $release      or $release      = "current-$distribution-$tree";
+defined $architecture or $architecture = "powerpc";
 
 ### read config
 my $config = &read_config("fink.conf");
@@ -84,7 +86,12 @@
 }
 
 $config->set_param("Trees", "$tree/main $tree/crypto");
-# "Trees" is a volatile change vs fink.conf, we don't (and mustn't) call save()
+if (defined $architecture) {
+    $config->set_param("Architecture", $architecture);
+    $config->set_param("Debarch", "darwin-$architecture");
+}
+# "Trees" and "Architecture"/"Debarch" are volatile changes vs fink.conf:
+# we don't (and mustn't) call save()
 
 # omit actual locally-installed fink if it is present
 set_options({exclude_trees=>[qw/status/]});



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Fink-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to