summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile1
-rwxr-xr-xmkinitcpio1
2 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ca1d63e..f26610d 100644
--- a/Makefile
+++ b/Makefile
@@ -25,6 +25,7 @@ install: all
-e 's|^HOOKDIR=.*|HOOKDIR=/lib/initcpio/hooks|' \
-e 's|^INSTDIR=.*|INSTDIR=/lib/initcpio/install|' \
-e 's|^PRESETDIR=.*|PRESETDIR=/etc/mkinitcpio.d|' \
+ -e 's|%VERSION%|${VERSION}|g' \
< mkinitcpio > ${DESTDIR}/sbin/mkinitcpio
sed -e 's|\(^declare FUNCTIONS\)=.*|\1=/lib/initcpio/functions|' \
diff --git a/mkinitcpio b/mkinitcpio
index 920a537..a94d09c 100755
--- a/mkinitcpio
+++ b/mkinitcpio
@@ -36,6 +36,7 @@ unset GREP_OPTIONS CDPATH
usage() {
cat <<EOF
+mkinitcpio %VERSION%
usage: ${0##*/} [options]
Options: