diff options
author | 2013-02-05 14:54:24 +0100 | |
---|---|---|
committer | 2013-02-05 14:54:24 +0100 | |
commit | 1dce300ac53801216aa28b6e5fc4a522e2a03c2c (patch) | |
tree | 61a2a899908c13aa528af92f255347bbd65f50d2 | |
parent | Updated man page and moved it to be an .in file, as the local EPREFIX has to ... (diff) | |
download | ufed-1dce300ac53801216aa28b6e5fc4a522e2a03c2c.tar.gz ufed-1dce300ac53801216aa28b6e5fc4a522e2a03c2c.tar.bz2 ufed-1dce300ac53801216aa28b6e5fc4a522e2a03c2c.zip |
Added setting of the local EPREFIX in ufed.8 man page.
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | Makefile.am | 11 |
2 files changed, 11 insertions, 2 deletions
@@ -17,4 +17,4 @@ stamp* ufed ufed-curses testflags.txt - +ufed.8 diff --git a/Makefile.am b/Makefile.am index 3bbcd4c..aaf93cd 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2,6 +2,7 @@ PACKAGE_VERSION = @PACKAGE_VERSION@ PERL = @PERL@ libexecdir = @libdir@/@PACKAGE@ perldir = @datadir@/@PACKAGE@ +E_PREFIX := $(shell portageq envvar EPREFIX 2>/dev/null) sbin_SCRIPTS = ufed libexec_PROGRAMS = ufed-curses @@ -22,7 +23,7 @@ noinst_HEADERS = \ ufed-curses-types.h dist_man_MANS = ufed.8 -EXTRA_DIST = ufed.pl.in +EXTRA_DIST = ufed.pl.in ufed.8.in ufed: ufed.pl.in rm -f $@.tmp @@ -34,3 +35,11 @@ ufed: ufed.pl.in $< >$@.tmp chmod +x $@.tmp mv $@.tmp $@ + +ufed.8: ufed.8.in + rm -f $@.tmp + sed \ + -e 's|@GENTOO_PORTAGE_EPREFIX@|$(E_PREFIX)|g' \ + $< >$@.tmp + chmod +x $@.tmp + mv $@.tmp $@ |