Cleaned up complicated code for removing unnecessary modules and themes.
This commit is contained in:
parent
aedf2950fe
commit
eb3abc7dbd
1 changed files with 8 additions and 8 deletions
|
@ -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"
|
.include "version.mk"
|
||||||
|
|
||||||
|
@ -75,15 +75,15 @@ post-extract:
|
||||||
|
|
||||||
pre-configure:
|
pre-configure:
|
||||||
cd ${WRKSRC} && \
|
cd ${WRKSRC} && \
|
||||||
ptn="@"`${ECHO} ${WEBMIN_MINIMAL_MODULES}|sed -e 's/ /@/g'`"@" && \
|
for m in */module.info; do \
|
||||||
for m in `${ECHO} */module.info | sed -e 's/\/module.info//g'`; do \
|
moduledir=$${m%/module.info}; \
|
||||||
case $${ptn} in \
|
case $${moduledir} in \
|
||||||
*@$${m}@*) ;; \
|
${WEBMIN_MINIMAL_MODULES:ts|}) ;; \
|
||||||
*) rm -rf $${m} ;; \
|
*) rm -rf $${moduledir} ;; \
|
||||||
esac; \
|
esac; \
|
||||||
done && \
|
done && \
|
||||||
for t in `${ECHO} */theme.info | sed -e 's/\/theme.info//g'`; do\
|
for t in */theme.info; do \
|
||||||
rm -rf $${t}; \
|
rm -rf $${t%/theme.info}; \
|
||||||
done && \
|
done && \
|
||||||
touch ${WRKSRC}/minimal-install
|
touch ${WRKSRC}/minimal-install
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue