summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2018-05-06 01:20:38 (EDT)
committer P. J. McDermott <pj@pehjota.net>2018-05-16 16:54:36 (EDT)
commita0edcf80c0d14c0ead76ba5d75c02618f98a1fc9 (patch)
tree481bcefc3b0324d03b71a00ea6e126813d04f1e9
parentbda7d16961a3f1e54ca707dafdeb21da3ec273a0 (diff)
downloadicecat-a0edcf80c0d14c0ead76ba5d75c02618f98a1fc9.zip
icecat-a0edcf80c0d14c0ead76ba5d75c02618f98a1fc9.tar.gz
icecat-a0edcf80c0d14c0ead76ba5d75c02618f98a1fc9.tar.bz2
gnuzilla/build: Make intermediate temporary directory
Also quote more arguments.
-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/'