mirror of
git://git.suckless.org/sbase
synced 2025-02-15 03:06:50 +00:00
22 lines
205 B
Bash
Executable File
22 lines
205 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
while read type src dst perm
|
|
do
|
|
case $type in
|
|
d)
|
|
mkdir -p $src
|
|
;;
|
|
c)
|
|
cp $src $dst
|
|
;;
|
|
*)
|
|
echo install: wrong entry type >&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
chmod $perm $dst
|
|
done < $1
|