diff options
author | Alexandre Anriot <aanriot@cvs.openbsd.org> | 2007-03-25 19:35:57 +0000 |
---|---|---|
committer | Alexandre Anriot <aanriot@cvs.openbsd.org> | 2007-03-25 19:35:57 +0000 |
commit | d64604f702b5913374079fcf198295e9b9b995c4 (patch) | |
tree | 5fa914debd372ffb6a540d76a906eb9f4beba271 | |
parent | d3c411c473c8c6f091830c74f45e07c3d1e5e84f (diff) |
automatically fill in the currently used release of OpenBSD before
installing .fvmwrc (it's affecting the pager).
help & ok matthieu@
-rw-r--r-- | app/fvwm/sample.fvwmrc/Makefile | 9 | ||||
-rw-r--r-- | app/fvwm/sample.fvwmrc/system.fvwmrc | 2 |
2 files changed, 8 insertions, 3 deletions
diff --git a/app/fvwm/sample.fvwmrc/Makefile b/app/fvwm/sample.fvwmrc/Makefile index aaa1b093c..24428f1b6 100644 --- a/app/fvwm/sample.fvwmrc/Makefile +++ b/app/fvwm/sample.fvwmrc/Makefile @@ -1,15 +1,19 @@ -# $OpenBSD: Makefile,v 1.3 2006/12/02 16:28:48 matthieu Exp $ +# $OpenBSD: Makefile,v 1.4 2007/03/25 19:35:56 aanriot Exp $ .include "../Makefile.inc" NOOBJ=Yes +OSRELEASE=`/sbin/sysctl -n kern.osrelease 2>&1` +RM?=rm depend: all: + @sed -e "s,__osrelease__,${OSRELEASE}," \ + ${.CURDIR}/system.fvwmrc > .fvwmrc install: - ${INSTALL} ${INSTALL_COPY} ${.CURDIR}/system.fvwmrc \ + ${INSTALL} ${INSTALL_COPY} .fvwmrc \ ${DESTDIR}${FVWMLIBDIR}/.fvwmrc ${INSTALL} ${INSTALL_COPY} ${.CURDIR}/system.fvwm2rc \ ${DESTDIR}${FVWMLIBDIR} @@ -23,6 +27,7 @@ install: ${DESTDIR}${FVWMLIBDIR} clean: + ${RM} -f .fvwmrc cleandir: diff --git a/app/fvwm/sample.fvwmrc/system.fvwmrc b/app/fvwm/sample.fvwmrc/system.fvwmrc index 90232f830..9ae80a82c 100644 --- a/app/fvwm/sample.fvwmrc/system.fvwmrc +++ b/app/fvwm/sample.fvwmrc/system.fvwmrc @@ -351,7 +351,7 @@ Key F8 A M CirculateDown *FvwmPagerFore white *FvwmPagerHilight #2d2d2d *FvwmPagerGeometry 80x60-1-1 -*FvwmPagerLabel 0 "OpenBSD 4.1" +*FvwmPagerLabel 0 "OpenBSD __osrelease__" *FvwmPagerLabel 1 Maker *FvwmPagerLabel 2 Mail *FvwmPagerLabel 3 Matlab |