diff options
Diffstat (limited to 'wm')
-rw-r--r-- | wm/ethemes/Makefile | 12 | ||||
-rw-r--r-- | wm/wmthemes/Makefile | 34 |
2 files changed, 23 insertions, 23 deletions
diff --git a/wm/ethemes/Makefile b/wm/ethemes/Makefile index b82285427e7..f66ce91ead4 100644 --- a/wm/ethemes/Makefile +++ b/wm/ethemes/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.20 2012/10/08 12:42:19 asau Exp $ +# $NetBSD: Makefile,v 1.21 2013/04/06 13:24:20 rodent Exp $ DISTNAME= ethemes-0.1 PKGREVISION= 3 @@ -38,14 +38,14 @@ E_THEMES?= Absolute_E-DR16-199911060830.etheme \ eMac-DR16-199912101635.etheme small-e-DR16-199908230041.etheme do-install: -.for FILE in ${E_THEMES} - NAME=`echo ${FILE} | ${SED} -e s/-DR16.*//` ; \ +.for file in ${E_THEMES} + NAME=`echo ${file} | ${SED} -e s/-DR16.*//` ; \ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/${E_DATADIR}/$$NAME ; \ ${GTAR} -C ${DESTDIR}${PREFIX}/${E_DATADIR}/$$NAME \ - -xzf ${DISTDIR}/${DIST_SUBDIR}/${FILE} + -xzf ${DISTDIR}/${DIST_SUBDIR}/${file} .endfor -.for DIR in Absolute_E ApplePlatinum FinalE - cd ${DESTDIR}${PREFIX}/${E_DATADIR}/${DIR} \ +.for dir in Absolute_E ApplePlatinum FinalE + cd ${DESTDIR}${PREFIX}/${E_DATADIR}/${dir} \ && ${CHMOD} go+rx `${FIND} . -type d -print` \ && ${CHMOD} go+r `${FIND} . -type f -print` .endfor diff --git a/wm/wmthemes/Makefile b/wm/wmthemes/Makefile index 3581fe08a7c..80733e1df9e 100644 --- a/wm/wmthemes/Makefile +++ b/wm/wmthemes/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.29 2012/10/08 12:42:25 asau Exp $ +# $NetBSD: Makefile,v 1.30 2013/04/06 13:24:20 rodent Exp $ # # There is no distinfo file because users can specify alternate themes @@ -41,26 +41,26 @@ SITES.${theme}.tar.gz= http://download.freshmeat.net/themes/${theme:C/-[^-]*$//} do-install: @${RM} -f ${PLIST_SRC} @${TOUCH} ${PLIST_SRC} -.for DIR in ${THEME_SUBDIRS} - @if [ -d ${WRKSRC}/${DIR} ] && [ -n "`ls ${WRKSRC}/${DIR}`" ]; then \ - ${ECHO} "Installing files in directory ${DIR}."; \ - cd ${WRKSRC}/${DIR}; \ - for FILE in *; do \ - ${MKDIR} ${DESTDIR}${PREFIX}/${WM_DATADIR}/${DIR}; \ - ${INSTALL_DATA} "$$FILE" ${DESTDIR}${PREFIX}/${WM_DATADIR}/${DIR}; \ - ${ECHO} "${WM_DATADIR}/${DIR}/$$FILE" >>${PLIST_SRC}; \ +.for dir in ${THEME_SUBDIRS} + @if [ -d ${WRKSRC}/${dir} ] && [ -n "`ls ${WRKSRC}/${dir}`" ]; then \ + ${ECHO} "Installing files in directory ${dir}."; \ + cd ${WRKSRC}/${dir}; \ + for file in *; do \ + ${MKDIR} ${DESTDIR}${PREFIX}/${WM_DATADIR}/${dir}; \ + ${INSTALL_DATA} "$$file" ${DESTDIR}${PREFIX}/${WM_DATADIR}/${dir}; \ + ${ECHO} "${WM_DATADIR}/${dir}/$$file" >>${PLIST_SRC}; \ done; \ fi .endfor @cd ${WRKSRC}; \ - for DIR in *.themed; do \ - if [ -d "$$DIR" ] && [ -n "`${LS} "$$DIR"`" ]; then \ - ${ECHO} "Installing \"`${BASENAME} "$$DIR" .themed`\" theme."; \ - ${INSTALL_DATA_DIR} "${DESTDIR}${PREFIX}/${WM_DATADIR}/Themes/$$DIR"; \ - cd "${WRKSRC}/$$DIR"; \ - for FILE in *; do \ - ${INSTALL_DATA} "$$FILE" "${DESTDIR}${PREFIX}/${WM_DATADIR}/Themes/$$DIR"; \ - ${ECHO} "${WM_DATADIR}/Themes/$$DIR/$$FILE" >>${PLIST_SRC}; \ + for dir in *.themed; do \ + if [ -d "$$dir" ] && [ -n "`${LS} "$$dir"`" ]; then \ + ${ECHO} "Installing \"`${BASENAME} "$$dir" .themed`\" theme."; \ + ${INSTALL_DATA_DIR} "${DESTDIR}${PREFIX}/${WM_DATADIR}/Themes/$$dir"; \ + cd "${WRKSRC}/$$dir"; \ + for file in *; do \ + ${INSTALL_DATA} "$$file" "${DESTDIR}${PREFIX}/${WM_DATADIR}/Themes/$$dir"; \ + ${ECHO} "${WM_DATADIR}/Themes/$$dir/$$file" >>${PLIST_SRC}; \ done; \ cd ..; \ fi; \ |