shredmaster/install

26 lines
417 B
Text
Raw Permalink Normal View History

2019-12-30 17:21:44 +00:00
#! /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