1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/source4/script/installtorture.sh

19 lines
269 B
Bash
Raw Normal View History

#!/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