set -e
printf "Creating macrodir...\n"
-macrodir="$( sed -r -e '/^AC_CONFIG_MACRO_DIR\(\[(.*)\]\)/!d;' \
+macrodir="$( sed -e '/^AC_CONFIG_MACRO_DIR(\[\(.*\)\])/!d;' \
-e 's//\1/;' \
configure.ac \
)"
[yes], [root_menu=Configuration],
[no], [root_menu=],
[# Escape the $ signs, otherwise they would get munged by make
- # Also, append a space at the end, to separate the package
- # name from the literal 'Configuration'
- root_menu="$( echo "$enableval" |sed -r -e 's/\$/\\$$/g;' )"])])
+ root_menu="$( echo "$enableval" |sed -e 's/\$/\\$$/g;' )"])])
AC_SUBST([root_menu], [${root_menu=Configuration}])
AC_ARG_ENABLE(
CLEANFILES = images.c images.h
images.c: images.c_orig
- $(AM_V_GEN)$(SED) -r -e 's/^static //' $< >$@
+ $(AM_V_GEN)$(SED) -e 's/^static //' $< >$@
images.h: images.c_orig
- $(AM_V_GEN)$(SED) -r -e '/^static (const char \*xpm_(.+)\[\]) = \{/!d; s//extern \1;/' \
+ $(AM_V_GEN)$(SED) -e '/^static \(const char \*xpm_\(.\{1,\}\)\[\]\) = {/!d; s//extern \1;/' \
$< >$@
# Get the kernel version
eval $( head -n 5 "${k_dir}/Makefile" \
- |sed -r -e 's/^/K_/; s/"//g; s/ = ?/="/; s/$/"/;' \
+ |sed -e 's/^/K_/; s/"//g; s/ = \{0,1\}/="/; s/$/"/;' \
)
k_cset="$( cd "${k_dir}"; \
git log -n 1 --pretty='format:%H' \
"${k_cset_old}..${k_cset}" \
${k_files} \
)|tee -a "scripts/ksync.log" \
- |sed -r -e 's/^/ /;'
+ |sed -e 's/^/ /;'
fi
k_ver_plain="$( printf "%s" "${k_ver}" \
- |sed -r -e 's/-rc.*//;' )"
+ |sed -e 's/-rc.*//;' )"
case "${kf_ver}" in
git) kf_ver="-$( git rev-parse --short HEAD )"
EXTRA_DIST = tweak.in tweak.in.patch
tweak: tweak.in
- $(AM_V_GEN)$(SED) -r -e "s/@CONFIG_@/$(config_prefix)/g" \
+ $(AM_V_GEN)$(SED) -e "s/@CONFIG_@/$(config_prefix)/g" \
$< >$@
@chmod +x $@