From 7ac7cf79c522a53a5366a3115785ef84bfdcbeb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Sun, 4 Mar 2012 18:20:32 +0100 Subject: [PATCH] Use generic versions by now --- build.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build.php b/build.php index 5b96816..274ae3a 100755 --- a/build.php +++ b/build.php @@ -75,9 +75,13 @@ EOT; chdir('..'); - passthru('tar cvf timwolla.wcf.chat.tar * --exclude=file --exclude=template --exclude=acptemplate --exclude=build.php', $code); + file_put_contents('package.xml.bak', file_get_contents('package.xml')); + file_put_contents('package.xml', str_replace('', '.'.time().'', file_get_contents('package.xml'))); + passthru('tar cvf timwolla.wcf.chat.tar * --exclude=*.bak --exclude=file --exclude=template --exclude=acptemplate --exclude=build.php', $code); + file_put_contents('package.xml', file_get_contents('package.xml.bak')); if ($code != 0) exit($code); +if (file_exists('package.xml.bak')) unlink('package.xml.bak'); if (file_exists('file.tar')) unlink('file.tar'); if (file_exists('template.tar')) unlink('template.tar'); if (file_exists('acptemplate.tar')) unlink('acptemplate.tar');