Introduction
Introduction Statistics Contact Development Disclaimer Help
install - 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
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.