r20975: - implement handling of meta data an on originating add
[Samba.git] / source4 / script / installtorture.sh
blobdb7ad9110c113f2e71d888e3006087544b0b6e3c
1 #!/bin/sh
3 INSTALLPERMS=$1
4 TORTUREDIR=$2
5 shift
6 shift
8 for p in $*; do
9 p2=`dirname $p`
10 base=`basename $p`
11 DESTDIR=$TORTUREDIR/`basename $p2`
12 mkdir -p $DESTDIR
13 echo Installing $p as $DESTDIR/$base
14 cp -f $p $DESTDIR/
15 chmod $INSTALLPERMS $DESTDIR/$base
16 done
18 exit 0