summaryrefslogtreecommitdiff
path: root/source4/script/installtorture.sh
blob: db7ad9110c113f2e71d888e3006087544b0b6e3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

INSTALLPERMS=$1
TORTUREDIR=$2
shift
shift

for p in $*; do
 p2=`dirname $p`
 base=`basename $p`
 DESTDIR=$TORTUREDIR/`basename $p2`
 mkdir -p $DESTDIR
 echo Installing $p as $DESTDIR/$base
 cp -f $p $DESTDIR/
 chmod $INSTALLPERMS $DESTDIR/$base
done

exit 0