diff options
author | rillig <rillig@pkgsrc.org> | 2016-11-20 01:11:40 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2016-11-20 01:11:40 +0000 |
commit | 77dfa3828dca4087668f16b677d385010fb3f28d (patch) | |
tree | 5928eaad17110b6d8cd965f293a6deaafc02c415 /sysutils/webmin | |
parent | 466a7bd02b112e55c406c48a39b84bf3607d90e2 (diff) | |
download | pkgsrc-77dfa3828dca4087668f16b677d385010fb3f28d.tar.gz |
Cleaned up complicated code for removing unnecessary modules and themes.
Diffstat (limited to 'sysutils/webmin')
-rw-r--r-- | sysutils/webmin/Makefile | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sysutils/webmin/Makefile b/sysutils/webmin/Makefile index 251f7a96f16..9720f386514 100644 --- a/sysutils/webmin/Makefile +++ b/sysutils/webmin/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.43 2016/07/09 06:39:03 wiz Exp $ +# $NetBSD: Makefile,v 1.44 2016/11/20 01:11:40 rillig Exp $ .include "version.mk" @@ -75,15 +75,15 @@ post-extract: pre-configure: cd ${WRKSRC} && \ - ptn="@"`${ECHO} ${WEBMIN_MINIMAL_MODULES}|sed -e 's/ /@/g'`"@" && \ - for m in `${ECHO} */module.info | sed -e 's/\/module.info//g'`; do \ - case $${ptn} in \ - *@$${m}@*) ;; \ - *) rm -rf $${m} ;; \ + for m in */module.info; do \ + moduledir=$${m%/module.info}; \ + case $${moduledir} in \ + ${WEBMIN_MINIMAL_MODULES:ts|}) ;; \ + *) rm -rf $${moduledir} ;; \ esac; \ done && \ - for t in `${ECHO} */theme.info | sed -e 's/\/theme.info//g'`; do\ - rm -rf $${t}; \ + for t in */theme.info; do \ + rm -rf $${t%/theme.info}; \ done && \ touch ${WRKSRC}/minimal-install |