= t d e Make an encrypted release of the current subdirectory (tar.gz.gpg) Pwd=`basename %d /` echo -n "Name of the distribution file (without extension) [$Pwd]: " read tar if [ "$tar"x = x ]; then tar=$Pwd; fi cd .. && tar chf - $Pwd | gzip -f9 > $tar.tar.gz echo ../${tar}.tar.gz created. gpg -a --output ${tar}.tar.gz.gpg --symmetric ${tar}.tar.gz rm ${tar}.tar.gz echo ../${tar}.tar.gz removed. echo ../${tar}.tar.gz.txt encrypted file created.