Made installation mechanism more portable

This commit is contained in:
ceriel
1991-12-18 14:51:08 +00:00
parent e4af3b2418
commit bce4511bbb
11 changed files with 99 additions and 48 deletions

16
first/cp_dir Executable file
View File

@@ -0,0 +1,16 @@
set -e
trap "rm -f /tmp/xx$$" 0 1 2 3 15
case $2 in
/*) target_dir=$2
;;
*) target_dir=`pwd`/$2
;;
esac
cd $1
tar cf /tmp/xx$$ .
if [ -d $target_dir ]
then :
else mkdir $target_dir
fi
cd $target_dir
tar xf /tmp/xx$$