[GRASS-SVN] r50225 -
grass/branches/releasebranch_6_4/scripts/g.extension
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jan 17 00:39:16 EST 2012
Author: hamish
Date: 2012-01-16 21:39:16 -0800 (Mon, 16 Jan 2012)
New Revision: 50225
Modified:
grass/branches/releasebranch_6_4/scripts/g.extension/g.extension
Log:
deal with .py scripts better (merge from devbr6)
Modified: grass/branches/releasebranch_6_4/scripts/g.extension/g.extension
===================================================================
--- grass/branches/releasebranch_6_4/scripts/g.extension/g.extension 2012-01-17 05:24:38 UTC (rev 50224)
+++ grass/branches/releasebranch_6_4/scripts/g.extension/g.extension 2012-01-17 05:39:16 UTC (rev 50225)
@@ -3,10 +3,10 @@
############################################################################
#
# MODULE: g.extension
-# AUTHOR(S): Markus Neteler
+# AUTHOR(S): Markus Neteler, Hamish Bowman, and Martin Landa
# PURPOSE: Tool to download and install extensions from GRASS Addons SVN into
# local GRASS installation
-# COPYRIGHT: (C) 2009-2011 by Markus Neteler, and the GRASS Development Team
+# COPYRIGHT: (C) 2009-2012 by Markus Neteler, and the GRASS Development Team
#
# This program is free software under the GNU General Public
# License (>=v2). Read the file COPYING that comes with GRASS
@@ -401,6 +401,13 @@
exit 1
fi
+ if [ -e "$MYINST_DIR/$PROGTYPE/$MODULE.py" ] ; then
+ # drop the .py from python scripts
+ mv "$MYINST_DIR/$PROGTYPE/$MODULE.py" "$MYINST_DIR/$PROGTYPE/$MODULE"
+ mv "$MYINST_DIR/man/man1/$MODULE.py.1" "$MYINST_DIR/man/man1/$MODULE.1"
+ mv "$MYINST_DIR/docs/html/$MODULE.py.html" "$MYINST_DIR/docs/html/$MODULE.html"
+ fi
+
if [ ! -x "$MYINST_DIR/$PROGTYPE/$MODULE" ] ; then
g.message -e "Module did not install properly"
cleanup
More information about the grass-commit
mailing list