annotate lib-src/installexe.sh @ 396:6719134a07c2 r21-2-13

Import from CVS: tag r21-2-13
author cvs
date Mon, 13 Aug 2007 11:12:05 +0200
parents 90d73dddcdc4
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents:
diff changeset
1 #!sh
6330739388db Import from CVS: tag r21-0b36
cvs
parents:
diff changeset
2
6330739388db Import from CVS: tag r21-0b36
cvs
parents:
diff changeset
3 install_prog=$1
6330739388db Import from CVS: tag r21-0b36
cvs
parents:
diff changeset
4 shift
6330739388db Import from CVS: tag r21-0b36
cvs
parents:
diff changeset
5
6330739388db Import from CVS: tag r21-0b36
cvs
parents:
diff changeset
6 tstr=""
6330739388db Import from CVS: tag r21-0b36
cvs
parents:
diff changeset
7 while [ $# -gt 0 ]
6330739388db Import from CVS: tag r21-0b36
cvs
parents:
diff changeset
8 do
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
9 if [ -f $1.exe ]
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents:
diff changeset
10 then
6330739388db Import from CVS: tag r21-0b36
cvs
parents:
diff changeset
11 tstr="$tstr$1.exe $2.exe"
278
90d73dddcdc4 Import from CVS: tag r21-0b37
cvs
parents: 276
diff changeset
12 shift 2
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents:
diff changeset
13 else
6330739388db Import from CVS: tag r21-0b36
cvs
parents:
diff changeset
14 tstr="$tstr$1 "
6330739388db Import from CVS: tag r21-0b36
cvs
parents:
diff changeset
15 fi
6330739388db Import from CVS: tag r21-0b36
cvs
parents:
diff changeset
16 shift
6330739388db Import from CVS: tag r21-0b36
cvs
parents:
diff changeset
17 done
6330739388db Import from CVS: tag r21-0b36
cvs
parents:
diff changeset
18 echo "$install_prog $tstr"
6330739388db Import from CVS: tag r21-0b36
cvs
parents:
diff changeset
19 eval "$install_prog $tstr"
6330739388db Import from CVS: tag r21-0b36
cvs
parents:
diff changeset
20 exit
6330739388db Import from CVS: tag r21-0b36
cvs
parents:
diff changeset
21