From 4880c78a34585eec5af33385789c787a20f6902c Mon Sep 17 00:00:00 2001 From: Loui Chang Date: Wed, 5 Aug 2009 13:44:06 -0400 Subject: Replace all occurances of 'source' with a dot for dash compatibility. Signed-off-by: Loui Chang Signed-off-by: Aaron Griffin --- mkinitcpio | 12 ++++++------ mkinitcpio.d/example.preset | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/mkinitcpio b/mkinitcpio index de47553..e6beffb 100755 --- a/mkinitcpio +++ b/mkinitcpio @@ -94,7 +94,7 @@ while getopts ':c:k:s:b:g:a:p:m:vH:LMhS:' arg; do m) MESSAGE="${OPTARG}" ;; v) QUIET="n" ;; S) SKIPHOOKS="${OPTARG}" ;; - H) source "${INSTDIR}/${OPTARG}"; + H) . "${INSTDIR}/${OPTARG}"; echo "Help for hook '${OPTARG}':" help cleanup @@ -122,7 +122,7 @@ if [ -n "${PRESET}" ]; then [ -n "${MESSAGE}" ] && PRESET_MKOPTS="${PRESET_MKOPTS} -m \"${MESSAGE}\"" [ "${QUIET}" = "n" ] && PRESET_MKOPTS="${PRESET_MKOPTS} -v" # Build all images - source ${PRESETDIR}/${PRESET}.preset + . ${PRESETDIR}/${PRESET}.preset for p in ${PRESETS[@]}; do echo "==> Building image \"${p}\"" PRESET_CMD="${PRESET_MKOPTS}" @@ -197,7 +197,7 @@ if [ ! -f "${CONFIG}" ]; then cleanup exit 1 fi -source "${CONFIG}" +. "${CONFIG}" if [ -f "${FILELIST}" -a -z "${APPEND}" ]; then if [ -z "${SAVELIST}" ]; then @@ -215,11 +215,11 @@ fi BASEDIR=$(echo ${BASEDIR} | tr -s /) MODULEDIR=$(echo ${MODULEDIR} | tr -s /) -source "${FUNCTIONS}" +. "${FUNCTIONS}" if [ "${SHOW_AUTOMODS}" = "y" ]; then echo "Modules autodetected:" - source "${INSTDIR}/autodetect" + . "${INSTDIR}/autodetect" install cat "${MODULE_FILE}" cleanup @@ -255,7 +255,7 @@ for hook in ${HOOKS}; do fi fi if grep "install" "${INSTDIR}/${hook}" >/dev/null 2>&1; then - source "${INSTDIR}/${hook}" + . "${INSTDIR}/${hook}" echo ":: Parsing hook [${hook}]" install parse_hook diff --git a/mkinitcpio.d/example.preset b/mkinitcpio.d/example.preset index 9ad53a3..3fb32f1 100644 --- a/mkinitcpio.d/example.preset +++ b/mkinitcpio.d/example.preset @@ -6,7 +6,7 @@ PRESETS=('default' 'fallback') # ALL_kver is used if presetname_kver is not set # note for distribution kernels: this should be in a separate file # and read like this: -# source /etc/mkinitcpio.d/exmaple.kver +# . /etc/mkinitcpio.d/exmaple.kver ALL_kver='2.6.24-ARCH' ALL_config='/etc/mkinitcpio.conf' -- cgit v1.2.3-24-g4f1b