[vala-tests] update update-from-wiki.sh



commit fd5a15cab113e89b04a244982d0ed546aaea9d63
Author: Marc-André Lureau <marcandre lureau gmail com>
Date:   Sun Aug 8 00:14:56 2010 +0200

    update update-from-wiki.sh

 update-from-wiki.sh |   80 +++++++++++++++++++++++++++-----------------------
 1 files changed, 43 insertions(+), 37 deletions(-)
---
diff --git a/update-from-wiki.sh b/update-from-wiki.sh
index 75c6697..30d34ed 100755
--- a/update-from-wiki.sh
+++ b/update-from-wiki.sh
@@ -1,51 +1,56 @@
 #!/bin/bash
 
 PAGES="
+AdvancedSample
 BasicSample
+CairoSample
 CharacterSample
-AdvancedSample
-ValueSample
-ListSample
-StringSample
-SignalsAndCallbacks
-PropertiesSample
-PreprocessorSample
-GeeSamples
-GIOSamples
-GIONetworkingSample
-LibSoupSample
+ClutterSamples
+CouchDBSample
+CursesSample
+CustomWidgetSamples
 DBusClientSamples
+DBusClientSamples/Waiting
+DBusServerSample
+GConfSample
+GIOCompressionSample
+GIONetworkingSample
+GIOSamples
+GSLSample
+GStreamerSample
 GTKSample
-CustomWidgetSamples
+GtkCellRendererSample
 GdlSample
+GeeSamples
+GnomeDesktopAndGMenuExample
 HildonSample
-WebKitSample
-GStreamerSample
-CairoSample
-ClutterSamples
+InputSamples
+IoChannelsSample
+JsonSample
+LibSoupSample
+ListSample
+LoudmouthSample
+LuaSample
+MarkupSample
+MxSample
+OpenGLSamples
+PanelAppletSample
 PangoCairoSample
 PopplerSample
+PostgreSQL
+PreprocessorSample
+PropertiesSample
 SDLSample
-OpenGLSamples
-GConfSample
-GnomeDesktopAndGMenuExample
-PanelAppletSample
-IoChannelsSample
-MarkupSample
-TypeModules
+SignalsAndCallbacks
+SqliteSample
+StringSample
 TestSample
-TimeSample
 ThreadingSamples
-CouchDBSample
-SqliteSample
-PostgreSQL
-InputSamples
-GSLSample
-CursesSample
-LoudmouthSample
-LuaSample
 TiffSample
-JsonSample
+TimeSample
+TypeModules
+ValueSample
+WebKitSample
 XmlSample
 ZLib
 "
@@ -56,9 +61,10 @@ fi
 
 for page in $PAGES ; do
   url="http://live.gnome.org/Vala/$page";
-  curl -s "$url?action=raw" -A "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)" > "$page-raw"
+  pageraw=`mktemp`
+  curl -s "$url?action=raw" -A "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)" > "$pageraw"
 
-  # awk '/^}}}/{close(f); f=""} f{print > f} /^{{{#/{ f=gensub(/.*vala-test:([\w]*)$/, "tests/\\1", "g"); }' $page-raw
+  # awk '/^}}}/{close(f); f=""} f{print > f} /^{{{#/{ f=gensub(/.*vala-test:([\w]*)$/, "tests/\\1", "g"); }' $pageraw
 
   IFS="
 "
@@ -77,8 +83,8 @@ for page in $PAGES ; do
       elif [[ "$file" != "" ]] ; then
 	  echo "$line" >> "$file"
       fi
-  done < "$page-raw"
+  done < "$pageraw"
 
-  rm "$page-raw"
+  rm "$pageraw"
   sleep 20 # don't overload live.gnome.org...
 done



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]