From: Anas Nashif Date: Tue, 1 May 2012 22:46:42 +0000 (+0100) Subject: add --build-all option X-Git-Tag: 2.0_alpha~55 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9d4695e18b701f31f21a34e4474e89c442aa78ac;p=tools%2Fdepanneur.git add --build-all option --- diff --git a/depanneur b/depanneur index 977a6db..2460129 100755 --- a/depanneur +++ b/depanneur @@ -50,6 +50,7 @@ use File::Basename; my $arch = ""; my $chain = 0; +my $chain = 0; my $dist = ""; my $dryrun = 0; my $help = 0; @@ -62,6 +63,7 @@ my $suffix = ""; GetOptions ( "arch=s" => \$arch, "chain" => \$chain, + "build-all" => \$buildall, "dist=s" => \$dist, "dryrun" => \$dryrun, "help|?" => \$help, @@ -171,8 +173,13 @@ a custom one. my @packs = @ARGV; # Traverse desired filesystems -File::Find::find({wanted => \&wanted}, "$ENV{TIZEN_DEVEL_ROOT}/packages"); - +if ($buildall) { + File::Find::find({wanted => \&wanted}, "$ENV{TIZEN_DEVEL_ROOT}/packages"); +} else { + if (@packs = 0) { + die("Please provide a list of packages to build."); + } +} sub wanted { my ($dev,$ino,$mode,$nlink,$uid,$gid);