New: Le makepack accepte la package a construire en ligne de commande, ce qui permet de construire les pack en batch (pour mettre à dispo, packagé, la dernière version cvs par exemple).

This commit is contained in:
Laurent Destailleur 2004-12-25 19:32:13 +00:00
parent afb8e5eb4d
commit 137e0cd1f6

View File

@ -91,10 +91,19 @@ $BUILDROOT="$TEMP/buildroot";
my $copyalreadydone=0; my $copyalreadydone=0;
# Choose package targets
#-----------------------
print "Makepack version $VERSION\n"; print "Makepack version $VERSION\n";
print "Building package for $PROJECT $MAJOR.$MINOR\n"; print "Building package for $PROJECT $MAJOR.$MINOR\n";
for (0..@ARGV-1) {
if ($ARGV[$_] =~ /^-*target=(\w+)/i) { $target=$1; }
}
# Choose package targets
#-----------------------
if ($target) {
$CHOOSEDTARGET{uc($target)}=1;
}
else {
my $found=0; my $found=0;
my $NUM_SCRIPT; my $NUM_SCRIPT;
while (! $found) { while (! $found) {
@ -134,6 +143,7 @@ else {
$CHOOSEDTARGET{$key}=1; $CHOOSEDTARGET{$key}=1;
} }
} }
}
# Test if requirement is ok # Test if requirement is ok
#-------------------------- #--------------------------