Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

inject VERSION into geninit and lsinitramfs

  • Loading branch information...
commit 96bac76f5f3d1d36d038c614ca01f0b356cea879 1 parent 3e37241
@falconindy authored
Showing with 5 additions and 2 deletions.
  1. +3 −2 Makefile
  2. +1 −0  geninit
  3. +1 −0  lsinitramfs
View
5 Makefile
@@ -57,8 +57,9 @@ install: init install-dirs install-doc
install -m644 -t ${DESTDIR}${PREFIX}/share/geninit/builders builders/*
install -m644 -t ${DESTDIR}${PREFIX}/share/geninit libinit geninit.api geninit.quirks
install -m755 -t ${DESTDIR}${PREFIX}/share/geninit init
- install -m755 -t ${DESTDIR}${PREFIX}/bin lsinitramfs
- sed "s#^\(declare.\+_sharedir\)=.*#\1=${PREFIX}/share/geninit#" < \
+ sed "s/%VERSION%/${VERSION}/" < lsinitramfs > ${DESTDIR}${PREFIX}/bin/lsinitramfs
+ chmod 755 ${DESTDIR}${PREFIX}/bin/lsinitramfs
+ sed "s#^\(declare.\+_sharedir\)=.*#\1=${PREFIX}/share/geninit#;s/%VERSION%/${VERSION}/" < \
geninit > ${DESTDIR}${PREFIX}/sbin/geninit
chmod 755 ${DESTDIR}${PREFIX}/sbin/geninit
.PHONY: install
View
1  geninit
@@ -109,6 +109,7 @@ cleanup() { # {{{
usage() { # {{{
cat<<USAGE
+geninit %VERSION%
usage: geninit [options]
Options:
View
1  lsinitramfs
@@ -33,6 +33,7 @@ die() {
usage() {
cat<<USAGE
+lsinitramfs %VERSION%
usage: ${0##*/} [options] <initramfs>
Options:
Please sign in to comment.
Something went wrong with that request. Please try again.