Remove some bashism from the shell scripts.
Note that configure.sh still uses the bashism $(RANDOM).
This commit is contained in:
parent
09202d8071
commit
9a27722b98
@ -120,8 +120,8 @@ EOF
|
|||||||
|
|
||||||
show_targets() {
|
show_targets() {
|
||||||
while [ -n "$*" ]; do
|
while [ -n "$*" ]; do
|
||||||
if [ "${1%%-*}" == "${2%%-*}" ]; then
|
if [ "${1%%-*}" = "${2%%-*}" ]; then
|
||||||
if [ "${2%%-*}" == "${3%%-*}" ]; then
|
if [ "${2%%-*}" = "${3%%-*}" ]; then
|
||||||
printf " %-24s %-24s %-24s\n" "$1" "$2" "$3"
|
printf " %-24s %-24s %-24s\n" "$1" "$2" "$3"
|
||||||
shift; shift; shift
|
shift; shift; shift
|
||||||
else
|
else
|
||||||
@ -475,7 +475,7 @@ post_process_common_cmdline() {
|
|||||||
prefix="${prefix%/}"
|
prefix="${prefix%/}"
|
||||||
libdir="${libdir:-${prefix}/lib}"
|
libdir="${libdir:-${prefix}/lib}"
|
||||||
libdir="${libdir%/}"
|
libdir="${libdir%/}"
|
||||||
if [ "${libdir#${prefix}}" == "${libdir}" ]; then
|
if [ "${libdir#${prefix}}" = "${libdir}" ]; then
|
||||||
die "Libdir ${libdir} must be a subdirectory of ${prefix}"
|
die "Libdir ${libdir} must be a subdirectory of ${prefix}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
##
|
##
|
||||||
## Copyright (c) 2010 The VP8 project authors. All Rights Reserved.
|
## Copyright (c) 2010 The VP8 project authors. All Rights Reserved.
|
||||||
##
|
##
|
||||||
@ -21,7 +21,7 @@ for opt; do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
TAB=$'\t'
|
TAB="$(printf '\t')"
|
||||||
cat > release.mk << EOF
|
cat > release.mk << EOF
|
||||||
%\$(BUILD_SFX).tar.bz2: %/.done
|
%\$(BUILD_SFX).tar.bz2: %/.done
|
||||||
${TAB}@echo "\$(subst .tar.bz2,,\$@): tarball"
|
${TAB}@echo "\$(subst .tar.bz2,,\$@): tarball"
|
||||||
@ -186,7 +186,7 @@ for cfg in $CONFIGS; do
|
|||||||
esac
|
esac
|
||||||
opts="$opts --enable-postproc"
|
opts="$opts --enable-postproc"
|
||||||
|
|
||||||
[ "x${clean}" == "xyes" ] \
|
[ "x${clean}" = "xyes" ] \
|
||||||
&& rm -rf ${full_cfg}${BUILD_SFX}${TAR_SFX} \
|
&& rm -rf ${full_cfg}${BUILD_SFX}${TAR_SFX} \
|
||||||
&& rm -rf logs/${full_cfg}${BUILD_SFX}.log.bz2
|
&& rm -rf logs/${full_cfg}${BUILD_SFX}.log.bz2
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user