Fix a few shellisms, configure for Z80 traditional and ANSI C only
[Ack-5.5.git] / first / cp_dir
1 set -e
2 trap "rm -f /tmp/xx__" 0 1 2 3 15
3 case $2 in
4 /*)     target_dir=$2
5         ;;
6 *)      target_dir=`pwd`/$2
7         ;;
8 esac
9 cd $1
10 tar cf /tmp/xx__ .
11 if [ -d $target_dir ]
12 then :
13 else mkdir $target_dir
14 fi
15 cd $target_dir
16 tar xf /tmp/xx__