summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoui Chang <louipc.ist@gmail.com>2009-08-05 19:44:06 +0200
committerAaron Griffin <aaronmgriffin@gmail.com>2009-09-01 19:08:39 +0200
commit4880c78a34585eec5af33385789c787a20f6902c (patch)
treed59867877fec6573d68842a7881c01b9050f9853
parent6ff43570127b30cc4b3765ac5bd7e0274d4e4fd5 (diff)
downloadmkinitcpio-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>
-rwxr-xr-xmkinitcpio12
-rw-r--r--mkinitcpio.d/example.preset2
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'