summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-07-01 14:31:52 +0200
committerDave Reisner <dreisner@archlinux.org>2011-07-01 21:52:24 +0200
commitff378318f68224e2568073faa364ad6a327416e8 (patch)
treeee30cedfdeb1e3c3e0fc15b59d8c5c561a5cc842 /Makefile
parentf7ce8941ea55af8f2268575441030728be82d266 (diff)
downloadmkinitcpio-ff378318f68224e2568073faa364ad6a327416e8.tar.gz
mkinitcpio-ff378318f68224e2568073faa364ad6a327416e8.tar.xz
lsinitcpio: add optional colorized output
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1079e9d..c19192e 100644
--- a/Makefile
+++ b/Makefile
@@ -27,7 +27,9 @@ install: all
-e 's|^PRESETDIR=.*|PRESETDIR=/etc/mkinitcpio.d|' \
< mkinitcpio > ${DESTDIR}/sbin/mkinitcpio
- sed "s|%VERSION%|${VERSION}|g" < lsinitcpio > ${DESTDIR}/bin/lsinitcpio
+ sed -e 's|\(^declare FUNCTIONS\)=.*|\1=/lib/initcpio/functions|' \
+ -e 's|%VERSION%|${VERSION}|g' \
+ < lsinitcpio > ${DESTDIR}/bin/lsinitcpio
chmod 755 ${DESTDIR}/bin/lsinitcpio ${DESTDIR}/sbin/mkinitcpio