cvs: phpweb /bin update-projects
| From: | Jim Winstead | Date: | Wed, 28 Feb 2001 20:57:01 +0000 |
| Subject: | cvs: phpweb /bin update-projects | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-4081@lists.php.net to get a copy of this message | ||
jimw Wed Feb 28 12:57:01 2001 EDT
Modified files:
/phpweb/bin update-projects
Log:
generate html file from projects xml by fetching it from www.php.net
Index: phpweb/bin/update-projects
diff -u phpweb/bin/update-projects:1.2 phpweb/bin/update-projects:1.3
--- phpweb/bin/update-projects:1.2 Sat Feb 24 15:03:30 2001
+++ phpweb/bin/update-projects Wed Feb 28 12:57:00 2001
@@ -7,3 +7,16 @@
fi
mv backend/projects.xml~ backend/projects.xml
+
+# won't be necessary when this is running on a machine that has php+sablotron
+# but for now is necessary to give time for projects.xml to get mirrored over
+# to www.php.net
+sleep 900
+
+lynx -source http://www.php.net/bin/projects.php
> backend/projects.html~
+if [ $? -ne 0 ]; then
+ echo problem converting results to html
+ exit 1
+fi
+
+mv backend/projects.html~ backend/projects.html