[GRASS-SVN] r67193 - grass-addons/tools/addons

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Dec 17 01:05:05 PST 2015


Author: martinl
Date: 2015-12-17 01:05:05 -0800 (Thu, 17 Dec 2015)
New Revision: 67193

Modified:
   grass-addons/tools/addons/compile.sh
Log:
addons index log page: cosmetics

Modified: grass-addons/tools/addons/compile.sh
===================================================================
--- grass-addons/tools/addons/compile.sh	2015-12-17 08:43:31 UTC (rev 67192)
+++ grass-addons/tools/addons/compile.sh	2015-12-17 09:05:05 UTC (rev 67193)
@@ -11,7 +11,7 @@
 SVN_PATH="$1"
 TOPDIR="$2"
 ADDON_PATH="$3"
-GRASS_VERSION=`echo $ADDON_PATH | cut -d'/' -f6 | sed 's/grass//g'`
+GRASS_VERSION=`echo $ADDON_PATH | cut -d'/' -f7 | sed 's/grass//g'`
 INDEX_FILE="index"
 
 if [ ! -d "$3" ] ; then
@@ -24,12 +24,18 @@
     SEP=0
 fi
 
+if [ $ADDON_PATH == *"64"* ] ; then
+    PLATFORM=x86_64
+else
+    PLATFORM=x86
+fi
+
 rm -rf "$ADDON_PATH"
 mkdir  "$ADDON_PATH"
 
 cd "$SVN_PATH"
 
-date=`date -I`
+date=`date -R`
 uname=`uname`
 mkdir "$ADDON_PATH/logs"
 touch "$ADDON_PATH/logs/${INDEX_FILE}.log"
@@ -41,7 +47,7 @@
 
 <head>
 <meta http-equiv=\"Content-Type\" content=\"application/xhtml+xml; charset=utf-8\" />
-<title>GRASS $ADDON_PATH AddOns Logs</title>
+<title>GRASS $ADDON_PATH AddOns Logs ($PLATFORM)</title>
 <style type=\"text/css\">
 h1 { font-size: 125%; font-weight: bold; }
 table
@@ -55,7 +61,7 @@
 </style>
 </head>
 <body>
-<h1>GRASS $GRASS_VERSION AddOns / $uname (logs generated $date)</h1>
+<h1>GRASS $GRASS_VERSION AddOns ($PLATFORM) / $uname (logs generated $date)</h1>
 <hr /> 
 <table cellpadding=\"5\">
 <tr><th style=\"background-color: grey\">AddOns</th>



More information about the grass-commit mailing list