File: reverse_clean

package info (click to toggle)
ace 8.0.2%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 46,932 kB
  • sloc: cpp: 341,621; perl: 31,868; sh: 1,963; python: 529; yacc: 511; xml: 330; lex: 158; lisp: 116; makefile: 85; csh: 20; ansic: 19; tcl: 5
file content (23 lines) | stat: -rwxr-xr-x 496 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
    & eval 'exec perl -S $0 $argv:q'
    if 0;
# -*- perl -*-
# This script does a realclean of the list in the reverse order that
# is passed to this. This is just a utility script

@ARGS = ();

if ($ARGV[0] eq ''){
    print STDERR "$0:  No directories provided\n";
    die "provide list of directories";
}

my $make = $ARGV[0];
shift;

@BUILD_LIST = @ARGV;


foreach $i (reverse (@BUILD_LIST)) {
    system ("$make -k -C $i realclean");
}