#! /bin/bash
# Last edited on 2013-10-24 23:03:41 by stolfilocal

dir="$1"; shift

tar -cvzf ${dir}.tgz \
  --exclude='*.a' \
  --exclude='*.log' \
  --exclude='*.o' \
  --exclude='*.ho' \
  --exclude='*~' \
  --exclude='*.tar' \
  --exclude='*.tar.gz' \
  --exclude='*.tgz' \
  --exclude='.[a-zA-Z]*' \
  --exclude=JUNK \
  --exclude=OLD \
  --exclude=SAVE \
  ${dir}