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:
parent
afb8e5eb4d
commit
137e0cd1f6
@ -91,13 +91,22 @@ $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";
|
||||||
my $found=0;
|
|
||||||
my $NUM_SCRIPT;
|
for (0..@ARGV-1) {
|
||||||
while (! $found) {
|
if ($ARGV[$_] =~ /^-*target=(\w+)/i) { $target=$1; }
|
||||||
|
}
|
||||||
|
|
||||||
|
# Choose package targets
|
||||||
|
#-----------------------
|
||||||
|
if ($target) {
|
||||||
|
$CHOOSEDTARGET{uc($target)}=1;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
my $found=0;
|
||||||
|
my $NUM_SCRIPT;
|
||||||
|
while (! $found) {
|
||||||
my $cpt=0;
|
my $cpt=0;
|
||||||
printf(" %d - %3s (%s)\n",$cpt,"All","Need ".join(",",values %REQUIREMENTTARGET));
|
printf(" %d - %3s (%s)\n",$cpt,"All","Need ".join(",",values %REQUIREMENTTARGET));
|
||||||
foreach my $target (@LISTETARGET) {
|
foreach my $target (@LISTETARGET) {
|
||||||
@ -122,17 +131,18 @@ while (! $found) {
|
|||||||
{
|
{
|
||||||
$found = 1;
|
$found = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
print "\n";
|
print "\n";
|
||||||
if ($NUM_SCRIPT) {
|
if ($NUM_SCRIPT) {
|
||||||
foreach my $num (split(/\s+/,$NUM_SCRIPT)) {
|
foreach my $num (split(/\s+/,$NUM_SCRIPT)) {
|
||||||
$CHOOSEDTARGET{$LISTETARGET[$num-1]}=1;
|
$CHOOSEDTARGET{$LISTETARGET[$num-1]}=1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
foreach my $key (@LISTETARGET) {
|
foreach my $key (@LISTETARGET) {
|
||||||
$CHOOSEDTARGET{$key}=1;
|
$CHOOSEDTARGET{$key}=1;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Test if requirement is ok
|
# Test if requirement is ok
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user