cvs: php-master-web /scripts update-backend

From: Date: Sun, 04 May 2003 12:50:07 +0000
Subject: cvs: php-master-web /scripts update-backend
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-17302@lists.php.net to get a copy of this message
goba Sun May 4 08:50:07 2003 EDT Modified files: /php-master-web/scripts update-backend Log: Move the mirrorkit.tgz file to the right place in case it is properly generated This now completes the wish, that any change in that file should be visible. Mirrorkit files are now in phpweb/backend/mirrorkit, and any modification on them will be visible in CVS. Index: php-master-web/scripts/update-backend diff -u php-master-web/scripts/update-backend:1.15 php-master-web/scripts/update-backend:1.16 --- php-master-web/scripts/update-backend:1.15 Thu May 1 17:16:06 2003 +++ php-master-web/scripts/update-backend Sun May 4 08:50:07 2003 @@ -40,10 +40,14 @@ fclose($dest); } -// Compress mirrorkit dir in backend to mirrorkit.tgz +// Compress mirrorkit dir in backend to mirrorkit.tgz, and +// then move it to the webspace in case it is properly done chdir("$root/backend/mirrorkit"); $output = tar --exclude=CVS --exclude=mirrorkit.tgz -czf mirrorkit.tgz *; if (strlen($output)) { die("Mirrorkit compression error: $output"); } +if (@file_exists('mirrorkit.tgz')) { + rename('mirrorkit.tgz', "$root/mirrorkit.tgz"); +} // Fetch data into a temporary file first, and then // overwrite the real file with the new data

« previous php.mirrors (#17302) next »