summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xgnuzilla/build18
1 files changed, 11 insertions, 7 deletions
diff --git a/gnuzilla/build b/gnuzilla/build
index a81d85a..42cd931 100755
--- a/gnuzilla/build
+++ b/gnuzilla/build
@@ -32,17 +32,18 @@ EOF
header 'Download Upstream Sources'
# Download.
-uscan --package icecat --upstream-version 0 --watchfile "${0%/*}/watch" \
+uscan --package icecat --upstream-version '0' --watchfile "${0%/*}/watch" \
--download --download-version "${version}" --destdir '.'
header 'Unpack Package'
# Create package directory and mount a temporary file system on it.
-mkdir "icecat-${upstream_version}/"
-sudo mount -t tmpfs tmpfs "icecat-${upstream_version}/"
+mkdir 'tmpfs/'
+sudo mount -t 'tmpfs' 'tmpfs' 'tmpfs/'
+cd 'tmpfs/'
# Unpack package.
-tar -xjf "icecat-${version}.tar.bz2"
+tar -xjf "../icecat-${version}.tar.bz2"
header 'Install Build Dependencies'
@@ -56,10 +57,13 @@ header 'Build Package'
cd "icecat-${upstream_version}/"
#dpkg-buildpackage -us -uc
bash
-cd ../
+cd '../'
header 'Clean Up'
# Unmount and remove package directory.
-sudo umount "icecat-${upstream_version}/"
-rmdir "icecat-${upstream_version}/"
+rm -Rf "icecat-${upstream_version}/"
+mv * '../'
+cd '../'
+sudo umount 'tmpfs/'
+rmdir 'tmpfs/'