Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/build-iso
diff options
context:
space:
mode:
Diffstat (limited to 'build-iso')
-rwxr-xr-xbuild-iso9
1 files changed, 5 insertions, 4 deletions
diff --git a/build-iso b/build-iso
index 7c6ac33..1c1a869 100755
--- a/build-iso
+++ b/build-iso
@@ -22,7 +22,7 @@ usage() {
>&2 echo " -h|--help: show this help and exit."
>&2 echo " --config mkarchiso configuration to use, default is '$CONFIG'."
>&2 echo " --arch architecture to build ISO for, default is '$ARCH'."
- >&2 echo " --outputdir where to write the isos, default is '~/archisos."
+ >&2 echo " --output-dir where to write the isos, default is '~/archisos."
>&2 echo " --iso name of the resulting ISO, default is '$ISO'."
>&2 echo " --no-cleanup do not clean up tmpdir after run, for debugging."
[ -z "$1" ] && exit 1 || exit "$1"
@@ -112,11 +112,12 @@ echo "architecture: $arch"
echo "destination ISO file: $iso"
sleep 5
-echo "building $ISO..."
+echo "building $iso..."
tmp_dir=$(mktemp -d)
trap 'rm -rf --one-file-system "${tmp_dir}"' EXIT
-arch="${arch}" setarch i686 mkarchiso -L "ARCH32_$DATE" -o "${output_dir}" -w "${tmp_dir}" -v "/usr/local/share/archiso/configs/${config}"
-
+env arch="${arch}" setarch i686 mkarchiso \
+ -L "ARCH32_$DATE" -o "${output_dir}" -w "${tmp_dir}" -v "/usr/local/share/archiso/configs/${config}"
+
if [ "${no_cleanup}" -eq 1 ]; then
echo "no-cleanup specified, find your temporary data in ${tmp_dir}.."
fi