SF.net SVN: geany-plugins:[1502] www/staging/gencontent.sh

dmaphy at users.sourceforge.net dmaphy at xxxxx
Wed Aug 4 20:55:41 UTC 2010


Revision: 1502
          http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1502&view=rev
Author:   dmaphy
Date:     2010-08-04 20:55:41 +0000 (Wed, 04 Aug 2010)

Log Message:
-----------
website: write plugin names to geany-plugins-listing.html with first letter in upper case

Modified Paths:
--------------
    www/staging/gencontent.sh

Modified: www/staging/gencontent.sh
===================================================================
--- www/staging/gencontent.sh	2010-08-04 20:54:24 UTC (rev 1501)
+++ www/staging/gencontent.sh	2010-08-04 20:55:41 UTC (rev 1502)
@@ -116,7 +116,8 @@
 
 		if [ $? -eq 0 ]; then # ... if yes, ...
 			# ... add it to the navigation ...
-			echo "<li><a href=\"index.php?site=$i\">$i</a></li>" >> $CONTENTDIR"geany-plugins-listing.html"
+			title=`echo ${i} | sed 's/\([a-z]\)\([a-zA-Z0-9]*\)/\u\1\2/g'`
+			echo "<li><a href=\"index.php?site=$i\">${title}</a></li>" >> $CONTENTDIR"geany-plugins-listing.html"
 			continue # ... and jump to the next one
 		fi;
 
@@ -128,7 +129,8 @@
 			# TODO: there is still output from rst2html to the shell, that ideally should'nt be
 			# TODO: newer versions of rst2html may face problems with the configuration files encoding
 			$RST2HTML -s --config=$CONTENTDIR"rst2html_config.conf" $SOURCESDIR$i/README | tee .README.html >> $LOGFILE 2>&1
-			echo "<li><a href=\"index.php?site=$i\">$i</a></li>" >> $CONTENTDIR"geany-plugins-listing.html"
+			title=`echo ${i} | sed 's/\([a-z]\)\([a-zA-Z0-9]*\)/\u\1\2/g'`
+			echo "<li><a href=\"index.php?site=$i\">${title}</a></li>" >> $CONTENTDIR"geany-plugins-listing.html"
 
 			if [ $? -ne 0 ]; then
 				echo -e "$RST2HTML exited with $?.\n\n"


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Plugins-Commits mailing list