]> wagner.pp.ru Git - oss/ljdump.git/commitdiff
add .tar.gz build
authorgreg <greg@7994a137-d0a5-da11-ade6-0050bffea3d9>
Fri, 25 Nov 2005 20:08:28 +0000 (20:08 +0000)
committergreg <greg@7994a137-d0a5-da11-ade6-0050bffea3d9>
Fri, 25 Nov 2005 20:08:28 +0000 (20:08 +0000)
git-svn-id: file:///home/svn/ljdump/trunk@8 7994a137-d0a5-da11-ade6-0050bffea3d9

build

diff --git a/build b/build
index ff7bd33420117278407ade5d959811105c4663d6..bc378609ca6418b0571c29edfd7569d66fac7a6b 100755 (executable)
--- a/build
+++ b/build
@@ -1,6 +1,18 @@
 #!/bin/sh
 
 VERSION=`grep Version ljdump.py | cut -d' ' -f3`
+
+DIR=ljdump-$VERSION
+rm -rf $DIR
+mkdir $DIR
+cp ljdump.py ljdump.config.sample $DIR/
+
+TARGZ=ljdump-$VERSION.tar.gz
+rm $TARGZ
+tar czf $TARGZ $DIR/*
+
 ZIP=ljdump-$VERSION.zip
 rm $ZIP
-zip $ZIP ljdump.py ljdump.config.sample
+zip $ZIP $DIR/*
+
+rm -rf $DIR