]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/distrib/makedocs
Reverted patch [ 832096 ] Final separation for GUI and console for Open Watcom
[wxWidgets.git] / wxPython / distrib / makedocs
index db6d2a085e8dfa341f2733bdf53dcc36717a49b0..2677728d4a21fbf4a4e4a802f5394df0fe8ef6ed 100755 (executable)
@@ -2,23 +2,17 @@
 
 #----------------------------------------------------------------------
 
-if [ -z $1 ]; then
-    echo "Please specify a version number on the command line."
-    exit 1
-fi
-
 if [ ! -d wxPython ]; then  # TODO: make this test more robust
     echo "Please run this script from the root wxPython directory."
     exit 1
 fi
 
 
+VERSION=`python -c "import setup;print setup.VERSION"`
 CONTRIBS="ogl gizmos"
+DEST=wxPython-$VERSION/docs
 
 # **** Make a directory to build up a distribution tree
-
-DEST=wxPython-$1/docs
-
 mkdir -p _build_docs/$DEST
 cd _build_docs
 mkdir $DEST/wx
@@ -60,9 +54,9 @@ popd
 cp ../distrib/viewdocs.py $DEST
 cp ../distrib/README.viewdocs.txt $DEST/README.txt
 
-rm -f ../dist/wxPythonDocs-$1.tar.gz
-tar cvf ../dist/wxPythonDocs-$1.tar $DEST
-gzip -9 ../dist/wxPythonDocs-$1.tar
+rm -f ../dist/wxPythonDocs-$VERSION.tar.gz
+tar cvf ../dist/wxPythonDocs-$VERSION.tar $DEST
+gzip -9 ../dist/wxPythonDocs-$VERSION.tar
 
 
 # **** Cleanup