From b62b54d3e4fcc20583107fc2fc871dacd990025d Mon Sep 17 00:00:00 2001 From: Gwenhael Le moine Date: Sun, 18 Apr 2010 09:11:48 +0700 Subject: [PATCH] cleaner --- xap/mozilla-firefox-trunk/mozilla-firefox.SlackBuild | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xap/mozilla-firefox-trunk/mozilla-firefox.SlackBuild b/xap/mozilla-firefox-trunk/mozilla-firefox.SlackBuild index f4d3d4f5..f02e98c2 100755 --- a/xap/mozilla-firefox-trunk/mozilla-firefox.SlackBuild +++ b/xap/mozilla-firefox-trunk/mozilla-firefox.SlackBuild @@ -18,7 +18,8 @@ ARCH=${ARCH:-$(uname -m)} BUILD=1 #$(date +%F | tr -d '-') PACKAGER=cyco -[ ! -e firefox-*.tar.bz2 ] && lftp http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-central/ -e "mget firefox-*.en-US.linux-x86_64.tar.bz2 ; quit" +[ -e firefox-*.en-US.linux-x86_64.tar.bz2 ] && for f in firefox-*.en-US.linux-x86_64.tar.bz2 ; do mv $f $f.orig ; done +lftp http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-central/ -e "mget firefox-*.en-US.linux-x86_64.tar.bz2 ; quit" VERSION=$(ls firefox-*.tar.bz2 | cut -d - -f 2 | sed 's|.en||') #rev | cut -f 3- -d . | rev)