From a0edcf80c0d14c0ead76ba5d75c02618f98a1fc9 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 06 May 2018 01:20:38 -0400 Subject: gnuzilla/build: Make intermediate temporary directory Also quote more arguments. --- 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/' -- cgit v0.9.1