[GRASS-SVN] r31593 - grass/trunk/tools

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jun 1 03:03:40 EDT 2008


Author: hamish
Date: 2008-06-01 03:03:40 -0400 (Sun, 01 Jun 2008)
New Revision: 31593

Modified:
   grass/trunk/tools/build_html_index.sh
Log:
minor clean: merge r31592 from devbr6

Modified: grass/trunk/tools/build_html_index.sh
===================================================================
--- grass/trunk/tools/build_html_index.sh	2008-06-01 06:58:14 UTC (rev 31592)
+++ grass/trunk/tools/build_html_index.sh	2008-06-01 07:03:40 UTC (rev 31593)
@@ -48,11 +48,11 @@
 <head>
  <title>$2</title>
  <meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">
- <meta name=\"Author\" content=\"GRASS Development Team\">" > $1
+ <meta name=\"Author\" content=\"GRASS Development Team\">" > "$1"
 if [ "$3" ] && [ "$MACOSX" ] ; then
 	echo " <meta name=\"AppleTitle\" content=\"GRASS GIS $GRASSVERSION Help\">
  <meta name=\"AppleIcon\" content=\"GRASS-$GRASS_MMVER/grass_icon.png\">
- <meta name=\"robots\" content=\"anchors\">" >> $1
+ <meta name=\"robots\" content=\"anchors\">" >> "$1"
 fi
 echo " <link rel=\"stylesheet\" href=\"grassdocs.css\" type=\"text/css\">
 </head>
@@ -77,7 +77,8 @@
 Geographic Resources Analysis Support System (GRASS), an open source (GNU
 GPL'ed), image processing and geographic information system (GIS).</p>
 
-<table>
+<BR><BR>
+<table align="center">
 <tr>
 <td valign=\"top\">
 <h3>Quick Introduction</h3>
@@ -102,18 +103,19 @@
 </ul>
 <P>
 
-" >> $1
+" >> "$1"
 }
 
 write_html_footer()
 {
 # $1: filename
 # $2: help index url
-echo "<hr>" >> $1
-echo "<p><a href=\"$2\">Help Index</a> | <a href=\"full_index.html\">Full Index</a><br>" >> $1
-echo "&copy; 2003-2008 <a href=\"http://grass.osgeo.org\">GRASS Development Team</a></p>" >> $1
-echo "</body>" >> $1   
-echo "</html>" >> $1
+echo "<BR><BR>
+<hr>
+<p><a href=\"$2\">Help Index</a> | <a href=\"full_index.html\">Full Index</a><br>
+&copy; 2003-2008 <a href=\"http://grass.osgeo.org\">GRASS Development Team</a></p>
+</body>
+</html>" >> "$1"
 }
 
 expand_module_class_name()
@@ -150,7 +152,7 @@
 ls build_html_index.sh 2> /dev/null
 if [ $? -eq 1 ] ; then
  echo "ERROR: this script must be run from the tools/ directory"
- exit
+ exit 1
 fi
 
 FULLINDEX=full_index.html
@@ -195,7 +197,6 @@
 #echo "<tr><td>&nbsp;&nbsp;g3.* </td><td>general3D commands</td></tr>" >> $FULLINDEX
 echo "<tr><td>&nbsp;&nbsp;i.*  </td><td>imagery commands</td></tr>" >> $FULLINDEX
 echo "<tr><td>&nbsp;&nbsp;m.*  </td><td>miscellaneous commands</td></tr>" >> $FULLINDEX
-#echo "<tr><td>&nbsp;&nbsp;p.*  </td><td>paint commands</td></tr>" >> $FULLINDEX
 echo "<tr><td>&nbsp;&nbsp;ps.* </td><td>postscript commands</td></tr>" >> $FULLINDEX
 echo "<tr><td>&nbsp;&nbsp;r.*  </td><td>raster commands</td></tr>" >> $FULLINDEX
 echo "<tr><td>&nbsp;&nbsp;r3.* </td><td>raster3D commands</td></tr>" >> $FULLINDEX



More information about the grass-commit mailing list