[Clipart] r36 - makerelease

noreply at openclipart.org noreply at openclipart.org
Fri Apr 10 08:39:13 PDT 2009


Author: jstaerk
Date: Fri Apr 10 15:39:11 2009
New Revision: 36

Log:
fixed zip root dir (jstaerk)

Modified:
   makerelease/downloader.php

Modified: makerelease/downloader.php
==============================================================================
--- makerelease/downloader.php	Tue Mar 31 09:46:05 2009	(r35)
+++ makerelease/downloader.php	Fri Apr 10 15:39:11 2009	(r36)
@@ -715,7 +715,7 @@
 			$this->myExec($this->path_wget,"http://download.openclipart.org/downloads/daily_SVG_snapshot.tar.bz2");
 		}
 		
-		$subdirname="openclipart";
+		$subdirname="openclipart-{$this->version}";
 		if (!file_exists($subdirname)) {
 			mkdir($subdirname);
 		}
@@ -740,7 +740,7 @@
 		if (file_exists($tarFile)) {
 			unlink($tarFile);
 		}
-		$this->myExec($this->path_tar,"cvf $tarFile openclipart");
+		$this->myExec($this->path_tar,"cvf $tarFile $subdirname");
 		$this->logger->shoutNewStatus("BZipping");
 		$bzFile="openclipart-{$this->version}.tar.bz2";
 		if (file_exists($bzFile)) {
@@ -759,7 +759,7 @@
 		if (file_exists($zipFile)) {
 			unlink($zipFile);
 		}
-		$this->myExec($this->path_zip,"-r $zipFile openclipart");
+		$this->myExec($this->path_zip,"-r $zipFile $subdirname");
 		if ($this->doRsync) {
 			$this->logger->shoutNewStatus("Uploading");
 			$sourceDir=getcwd();



More information about the clipart mailing list