cvs: php-master-web /scripts update-backend
| From: | Gabor Hojtsy | Date: | Thu, 01 May 2003 16:52:25 +0000 |
| Subject: | cvs: php-master-web /scripts update-backend | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-17193@lists.php.net to get a copy of this message | ||
goba Thu May 1 12:52:25 2003 EDT
Modified files:
/php-master-web/scripts update-backend
Log:
Implement automatic update of mirrorkit.tgz
This was on the TODO for a long time ;)
No replace of the mirrorkit.tgz file is made
so far, first we need to see that contents are
all right.
Index: php-master-web/scripts/update-backend
diff -u php-master-web/scripts/update-backend:1.12 php-master-web/scripts/update-backend:1.13
--- php-master-web/scripts/update-backend:1.12 Thu May 1 12:04:51 2003
+++ php-master-web/scripts/update-backend Thu May 1 12:52:25 2003
@@ -40,6 +40,11 @@
fclose($dest);
}
+// Compress mirrorkit dir in backend to mirrorkit.tgz
+chdir("$root/backend/mirrorkit");
+$output =
tar -czf mirrorkit.tgz *;
+if (strlen($output)) { die("Mirrorkit compression error: $output"); }
+
// Fetch data into a temporary file first, and then
// overwrite the real file with the new data
function fetch_into_file($url, $file)