echo -n "Name of the distribution file (without extension) [$Pwd]: "
read tar
if [ "$tar"x = x ]; then tar="$Pwd"; fi
- cd .. && tar cvf - "$Pwd" | bzip2 -f9 > "$tar".tar.bz2
+ cd .. && tar cvf - "$Pwd" | bzip2 -f9 > "$tar".tar.bz2 &&
echo ../"$tar".tar.bz2 created.
+ t d & f ^\.\.$
echo -n "Name of the distribution file (without extension) [$Pwd]: "
read tar
if [ "$tar"x = x ]; then tar="$Pwd"; fi
- cd .. && tar cvf - "$Pwd" | gzip -f9 > "$tar".tar.gz
+ cd .. && tar cvf - "$Pwd" | gzip -f9 > "$tar".tar.gz &&
echo ../"$tar".tar.gz created.
+ t d & f ^\.\.$
echo -n "Name of the distribution file (without extension) [$Pwd]: "
read tar
if [ "$tar"x = x ]; then tar="$Pwd"; fi
- cd .. && tar cvf - "$Pwd" > "$tar".tar
+ cd .. && tar cvf - "$Pwd" > "$tar".tar &&
echo ../"$tar".tar created.
+ t d & f ^\.\.$
echo -n "Name of the distribution file (without extension) [$Pwd]: "
read zip
if [ "$zip"x = x ]; then zip="$Pwd"; fi
- cd .. && zip -r9 "$zip".zip "$Pwd"
+ cd .. && zip -r9 "$zip".zip "$Pwd" &&
echo ../"$zip".zip created.
+ t d & f ^\.\.$
echo -n "Name of the distribution file (without extension) [$Pwd]: "
read zip
if [ "$zip"x = x ]; then zip="$Pwd"; fi
- cd .. && zip.py "$zip".zip "$Pwd"
+ cd .. && zip.py "$zip".zip "$Pwd" &&
echo ../"$zip".zip created.
+ ! f \.(\.|zip|ZIP)$