sbase/scripts/install

22 lines
208 B
Bash
Executable File

#!/bin/sh
set -e
while read type src dst perm
do
case $type in
d)
mkdir -p $src
;;
c)
cp -f $src $dst
;;
*)
echo install: wrong entry type >&2
exit 1
;;
esac
chmod $perm $dst
done < $1