Added version to config.py
authorStefanos Harhalakis <v13@v13.gr>
Thu, 24 Jun 2010 15:52:49 +0000 (15:52 +0000)
committerStefanos Harhalakis <v13@v13.gr>
Thu, 24 Jun 2010 15:52:49 +0000 (15:52 +0000)
Added mkdist

mkdist [new file with mode: 0755]
src/config.py

diff --git a/mkdist b/mkdist
new file mode 100755 (executable)
index 0000000..9b59c08
--- /dev/null
+++ b/mkdist
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+VERSION=`cd drlaunch/src ; python2.5 -c "import config ;print config.version"`
+
+if [ -z "$VERSION" ] ; then
+       echo "Version not found"
+       exit 1
+fi
+
+D="drlaunch-$VERSION"
+
+rm -rf tmp
+mkdir tmp
+cp -pR drlaunch "tmp/$D"
+
+FN="drlaunch-$VERSION.tar.gz"
+
+echo "Creating $FN"
+tar -zcf $FN --exclude ".svn" --exclude ".*.swp" -C tmp $D
+
+rm -rf tmp
+
index 36a33be..e89ed89 100755 (executable)
@@ -25,6 +25,8 @@ __version__ = "$Id: 0.py 2265 2010-02-21 19:16:26Z v13 $"
 import os
 import pickle
 
+version = "0.1"
+
 try:
     from glib import get_user_config_dir
 except: