mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-03 12:35:02 +00:00
mkisoimages.sh: remove obsolete x$var convention
Ancient shells had trouble with empty variables but this has not been relevant for FreeBSD for a very long time (decades?).
This commit is contained in:
parent
9cede44051
commit
93cf995aef
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=323165
@ -23,7 +23,7 @@
|
|||||||
# extra-bits-dir, if provided, contains additional files to be merged
|
# extra-bits-dir, if provided, contains additional files to be merged
|
||||||
# into base-bits-dir as part of making the image.
|
# into base-bits-dir as part of making the image.
|
||||||
|
|
||||||
if [ "x$1" = "x-b" ]; then
|
if [ "$1" = "-b" ]; then
|
||||||
# This is highly x86-centric and will be used directly below.
|
# This is highly x86-centric and will be used directly below.
|
||||||
bootable="-o bootimage=i386;$4/boot/cdboot -o no-emul-boot"
|
bootable="-o bootimage=i386;$4/boot/cdboot -o no-emul-boot"
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
# extra-bits-dir, if provided, contains additional files to be merged
|
# extra-bits-dir, if provided, contains additional files to be merged
|
||||||
# into base-bits-dir as part of making the image.
|
# into base-bits-dir as part of making the image.
|
||||||
|
|
||||||
if [ "x$1" = "x-b" ]; then
|
if [ "$1" = "-b" ]; then
|
||||||
# This is highly x86-centric and will be used directly below.
|
# This is highly x86-centric and will be used directly below.
|
||||||
bootable="-o bootimage=i386;$4/boot/cdboot -o no-emul-boot"
|
bootable="-o bootimage=i386;$4/boot/cdboot -o no-emul-boot"
|
||||||
shift
|
shift
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
# extra-bits-dir, if provided, contains additional files to be merged
|
# extra-bits-dir, if provided, contains additional files to be merged
|
||||||
# into base-bits-dir as part of making the image.
|
# into base-bits-dir as part of making the image.
|
||||||
|
|
||||||
if [ "x$1" = "x-b" ]; then
|
if [ "$1" = "-b" ]; then
|
||||||
# Apple boot code
|
# Apple boot code
|
||||||
uudecode -o /tmp/hfs-boot-block.bz2 "`dirname "$0"`/hfs-boot.bz2.uu"
|
uudecode -o /tmp/hfs-boot-block.bz2 "`dirname "$0"`/hfs-boot.bz2.uu"
|
||||||
bzip2 -d /tmp/hfs-boot-block.bz2
|
bzip2 -d /tmp/hfs-boot-block.bz2
|
||||||
|
@ -40,7 +40,7 @@ echo "/dev/iso9660/$LABEL / cd9660 ro 0 0" > "$BASEBITSDIR/etc/fstab"
|
|||||||
makefs -t cd9660 -o rockridge -o label="$LABEL" -o publisher="$publisher" "$NAME.tmp" "$@"
|
makefs -t cd9660 -o rockridge -o label="$LABEL" -o publisher="$publisher" "$NAME.tmp" "$@"
|
||||||
rm -f "$BASEBITSDIR/etc/fstab"
|
rm -f "$BASEBITSDIR/etc/fstab"
|
||||||
|
|
||||||
if [ "x$BOPT" != "x-b" ]; then
|
if [ "$BOPT" != "-b" ]; then
|
||||||
mv "$NAME.tmp" "$NAME"
|
mv "$NAME.tmp" "$NAME"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user