summaryrefslogtreecommitdiff
path: root/install
blob: 33a570d134b36bdcfa0cc5cc88366fd8af0c66d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#! /bin/sh

dist="shredmaster.sh shredder.sh"

if [ -z ${1} ]; then
  echo "usage: ./install TARGET -- installs programs to ~/bin/TARGET/"
  exit
fi

if [ ! -d ~/bin/ ]; then
  mkdir ~/bin/
  echo "creating ~/bin/"
fi

if [ ! -d ~/bin/${1}/ ]; then
  mkdir ~/bin/${1}/
  echo "creating ~/bin/${1}/"
fi


for i in ${dist}; do
  cp ./${i} ~/bin/${1}
  echo "copying ${i} to ~/bin/${1}/"
  chmod +x ~/bin/${1}/${i}
done