diff options
author | Loui Chang <louipc.ist@gmail.com> | 2009-08-05 19:44:06 +0200 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-09-01 19:08:39 +0200 |
commit | 4880c78a34585eec5af33385789c787a20f6902c (patch) | |
tree | d59867877fec6573d68842a7881c01b9050f9853 /mkinitcpio | |
parent | 6ff43570127b30cc4b3765ac5bd7e0274d4e4fd5 (diff) | |
download | mkinitcpio-4880c78a34585eec5af33385789c787a20f6902c.tar.gz mkinitcpio-4880c78a34585eec5af33385789c787a20f6902c.tar.xz |
Replace all occurances of 'source' with a dot for dash compatibility.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'mkinitcpio')
-rwxr-xr-x | mkinitcpio | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 |