Debian Codegraph @

support/adacompiler

raw symbols SCIP
1 #! /bin/sh
2 #
3 # Extract the directory name from "-o .libs/foobar.lo" and do the move
4 # after the compilation.
5 #
6
7 GNATMAKE=$1
8 shift
9 cline="$@"
10 fname=`echo $cline | sed -e 's/^.* -o \([^ ]*\)$/\1/'`
11 rname=`basename $fname | sed -e 's/lo$/o/'`
12 cline=`echo $cline | sed -e "s, -o \([^ ]*\)\$,,"`
13 $GNATMAKE -f -u $cline
14 if [ "$rname" != "$fname" ]; then
15 echo mv $rname $fname
16 mv $rname $fname
17 fi