fixed dir dependency
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@24 4cde692c-a291-49d1-8350-778aa11640f8
This commit is contained in:
parent
f898c41752
commit
b14adecd41
10
mktarball.py
10
mktarball.py
@ -4,13 +4,17 @@
|
|||||||
# the script is living in, excluding CVS directories and the
|
# the script is living in, excluding CVS directories and the
|
||||||
# script itself.
|
# script itself.
|
||||||
#
|
#
|
||||||
# $Id: mktarball.py,v 1.5 1999-12-18 23:28:54 Just Exp $
|
# $Id: mktarball.py,v 1.6 1999-12-18 23:56:14 just Exp $
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
import os, sys
|
import os, sys
|
||||||
|
|
||||||
src, self = os.path.split(sys.argv[0])
|
script = os.path.join(os.getcwd(), sys.argv[0])
|
||||||
|
srcdir, scriptname = os.path.split(script)
|
||||||
|
wdir, src = os.path.split(srcdir)
|
||||||
|
os.chdir(wdir)
|
||||||
|
|
||||||
tar = src + ".tar"
|
tar = src + ".tar"
|
||||||
gz = tar + ".gz"
|
gz = tar + ".gz"
|
||||||
tgz = src + ".tgz"
|
tgz = src + ".tgz"
|
||||||
@ -18,6 +22,6 @@ tgz = src + ".tgz"
|
|||||||
print "source:", src
|
print "source:", src
|
||||||
print "dest:", tgz
|
print "dest:", tgz
|
||||||
|
|
||||||
os.system('tar --exclude=CVS --exclude=%s -cf %s %s' % (self, tar, src))
|
os.system('tar --exclude=CVS --exclude=%s -cf %s %s' % (scriptname, tar, src))
|
||||||
os.system('gzip -9v %s' % tar)
|
os.system('gzip -9v %s' % tar)
|
||||||
os.rename(gz, tgz)
|
os.rename(gz, tgz)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user