fonttools/mktarball.py
Just f898c41752 doco and cleanup
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@23 4cde692c-a291-49d1-8350-778aa11640f8
1999-12-18 23:28:54 +00:00

24 lines
502 B
Python

#! /usr/bin/env python
#
# Script to make a compressed tar archive of the directory
# the script is living in, excluding CVS directories and the
# script itself.
#
# $Id: mktarball.py,v 1.5 1999-12-18 23:28:54 Just Exp $
#
import os, sys
src, self = os.path.split(sys.argv[0])
tar = src + ".tar"
gz = tar + ".gz"
tgz = src + ".tgz"
print "source:", src
print "dest:", tgz
os.system('tar --exclude=CVS --exclude=%s -cf %s %s' % (self, tar, src))
os.system('gzip -9v %s' % tar)
os.rename(gz, tgz)