[GRASS-SVN] r53478 - grass-addons/tools/wingrass-packager
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Oct 18 12:12:08 PDT 2012
Author: martinl
Date: 2012-10-18 12:12:07 -0700 (Thu, 18 Oct 2012)
New Revision: 53478
Modified:
grass-addons/tools/wingrass-packager/grass_addons.sh
Log:
wingrass addons script: tidy citizen (prepared for future usage)
Modified: grass-addons/tools/wingrass-packager/grass_addons.sh
===================================================================
--- grass-addons/tools/wingrass-packager/grass_addons.sh 2012-10-18 18:55:16 UTC (rev 53477)
+++ grass-addons/tools/wingrass-packager/grass_addons.sh 2012-10-18 19:12:07 UTC (rev 53478)
@@ -8,6 +8,19 @@
cd $SVN_PATH
svn up || (svn cleanup && svn up)
+# see http://lists.osgeo.org/pipermail/grass-dev/2011-December/056938.html
+function tidy_citizen {
+ # move script/ and bin/ to main dir
+ mv bin/* .
+ mv scripts/* .
+
+ # move man/ into docs/
+ mv man docs/
+
+ # if empty, rmdir bin, etc, man, scripts
+ rmdir bin etc scripts
+}
+
function compile {
path=`echo $PATH`
export PATH=$PATH:/c/OSGeo4W/apps/msys/bin:$2/dist.i686-pc-mingw32/bin:$2/dist.i686-pc-mingw32/scripts
@@ -24,6 +37,9 @@
sed "s/GISBASE/GRASS_ADDON_PATH/" bin/${mod}.bat > tmp
mv tmp bin/${mod}.bat
fi
+ # if [ `echo $1 | sed -e 's/\(^.*\)\(.$\)/\2/'` = "6" ] ; then
+ # tidy_citizen
+ # fi
zip -r $mod.zip *
mv $mod.zip ..
cd ..
More information about the grass-commit
mailing list