sbase

suckless unix tools
git clone git://git.suckless.org/sbase
Log | Files | Refs | README | LICENSE

install (208B)


      1 #!/bin/sh
      2 
      3 set -e
      4 
      5 while read type src dst perm
      6 do
      7 	case $type in
      8 	d)
      9 		mkdir -p $src
     10 		;;
     11 	c)
     12 		cp -f $src $dst
     13 		;;
     14 	*)
     15 		echo install: wrong entry type >&2
     16 		exit 1
     17 		;;
     18 	esac
     19 
     20 	chmod $perm $dst
     21 done < $1