[GRASS-SVN] r49243 - grass-addons/tools/addons
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Nov 14 11:17:12 EST 2011
Author: martinl
Date: 2011-11-14 08:17:12 -0800 (Mon, 14 Nov 2011)
New Revision: 49243
Modified:
grass-addons/tools/addons/compile.sh
Log:
wingrass addons compilation: some tunning
Modified: grass-addons/tools/addons/compile.sh
===================================================================
--- grass-addons/tools/addons/compile.sh 2011-11-14 15:17:54 UTC (rev 49242)
+++ grass-addons/tools/addons/compile.sh 2011-11-14 16:17:12 UTC (rev 49243)
@@ -10,24 +10,35 @@
TOPDIR="$2"
ADDON_PATH="$3"
-rm -r $ADDON_PATH
-mkdir $ADDON_PATH
+rm -rf $ADDON_PATH
+mkdir $ADDON_PATH
cd $SVN_PATH
+
+mkdir $ADDON_PATH/log
+touch $ADDON_PATH/make.log
+
for c in "display" "general" "imagery" "raster" "vector"; do
if [ ! -d $c ]; then
continue
fi
cd $c
for m in `ls -d */ 2>/dev/null` ; do
+ m="${m%%/}"
echo "Compiling $m..."
cd $m
make MODULE_TOPDIR=$TOPDIR \
- BIN=$ADDON_PATH/bin \
- HTMLDIR=$ADDON_PATH/docs/html \
- MANDIR=$ADDON_PATH/man/man1 \
- SCRIPTDIR=$ADDON_PATH/scripts \
- ETC=$ADDON_PATH/etc
+ BIN=$ADDON_PATH/bin \
+ HTMLDIR=$ADDON_PATH/docs/html \
+ MANDIR=$ADDON_PATH/man/man1 \
+ SCRIPTDIR=$ADDON_PATH/scripts \
+ ETC=$ADDON_PATH/etc \
+ MANIFEST= WINDRES= MANIFEST_OBJ= >$ADDON_PATH/log/${m}.log 2>&1
+ if [ `echo $?` -eq 0 ] ; then
+ printf "%-30s%s\n" "$c/$m" "SUCCESS" >> $ADDON_PATH/make.log
+ else
+ printf "%-30s%s\n" "$c/$m" "FAILED" >> $ADDON_PATH/make.log
+ fi
cd ..
done
cd ..
More information about the grass-commit
mailing list