Use LS macro.

This commit is contained in:
Trevor Johnson 2004-01-23 05:28:50 +00:00
parent d484d409c5
commit 06acd13c21
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=98863
19 changed files with 25 additions and 25 deletions

View file

@ -103,7 +103,7 @@ do-install:
.for FILE in ${BIN2STRIP}
@${STRIP_CMD} ${PREFIX}/clip/bin/${FILE}
.endfor
@for f in `ls ${PREFIX}/clip/lib/*.so` ; \
@for f in `${LS} ${PREFIX}/clip/lib/*.so` ; \
do \
${STRIP_CMD} $$f ; \
done

View file

@ -34,7 +34,7 @@ WRKSRC= ${WRKDIR}/cc65-${PORTVERSION}
DEVNULL= ${__empty_string_for_portlint}/dev/null
# These doc files can be compiled using the textproc/sgmltools port
DOCFILES!= ls ${WRKSRC}/doc 2> ${DEVNULL} | \
DOCFILES!= ${LS} ${WRKSRC}/doc 2> ${DEVNULL} | \
${SED} -E -e 's/^/doc\//' && ${ECHO_CMD} announce.txt
BINFILES= \
@ -43,14 +43,14 @@ BINFILES= \
BINSCRIPTS= src/ca65html/ca65html
ASMINCFILES!= ls ${WRKSRC}/asminc 2> ${DEVNULL} | ${EGREP} '\.inc' || true
ASMINCFILES!= ${LS} ${WRKSRC}/asminc 2> ${DEVNULL} | ${EGREP} '\.inc' || true
CC65LIBFILES!= ls ${WRKSRC}/libsrc/ 2> ${DEVNULL} | ${EGREP} '\.(o|lib)' \
CC65LIBFILES!= ${LS} ${WRKSRC}/libsrc/ 2> ${DEVNULL} | ${EGREP} '\.(o|lib)' \
|| true
CC65EMDFILES!= ls ${WRKSRC}/libsrc/ 2> ${DEVNULL} | ${EGREP} '\.emd' || true
CC65EMDFILES!= ${LS} ${WRKSRC}/libsrc/ 2> ${DEVNULL} | ${EGREP} '\.emd' || true
CC65TGIFILES!= ls ${WRKSRC}/libsrc/ 2> ${DEVNULL} | ${EGREP} '\.tgi' || true
CC65TGIFILES!= ${LS} ${WRKSRC}/libsrc/ 2> ${DEVNULL} | ${EGREP} '\.tgi' || true
do-build:
cd ${WRKSRC}/src && ${SETENV} ${MAKE_ENV} ${GMAKE} -ef make/gcc.mak

View file

@ -28,7 +28,7 @@ MAN1= entity.1
post-install:
${LDCONFIG} -m ${PREFIX}/lib/entity/clib ${PREFIX}/lib
${MKDIR} ${PREFIX}/share/entity
cd ${WRKSRC}/apps && \
${PAX} -r -w `ls | ${GREP} -v Makefile` ${PREFIX}/share/entity
cd ${WRKSRC}/apps && ${PAX} -r -w `${LS} | \
${GREP} -v Makefile` ${PREFIX}/share/entity
.include <bsd.port.mk>

View file

@ -37,7 +37,7 @@ post-extract:
@cd ${WRKDIR}/Test && ${SH} ${WRKDIR}/Test/examples
post-patch:
@WISH=`(cd ${LOCALBASE}/bin ; ls wish8* ) | tail -1` ; \
@WISH=`(cd ${LOCALBASE}/bin ; ${LS} wish8* ) | tail -1` ; \
if [ -z "$$WISH" ] ; then WISH=wish8.0 ; fi ; \
${REINPLACE_CMD} \
-e "s|%%LOCALBASE%%|${LOCALBASE}|g;" \

View file

@ -37,7 +37,7 @@ TMPFILE= ${WRKSRC}/dungeon.tmp
# (cd ${WRKSRC} && unzip ${DISTDIR}/dungn27s.zip > /dev/null)
post-extract:
(cd ${WRKSRC} && ls > ${TMPFILE}.1)
(cd ${WRKSRC} && ${LS} > ${TMPFILE}.1)
(cd ${WRKSRC} && ${AWK} -f ${FILESDIR}/aa.awk < ${TMPFILE}.1 \
> ${TMPFILE}.2)
(cd ${WRKSRC} && sh ${TMPFILE}.2)

View file

@ -41,10 +41,10 @@ post-extract:
post-install:
${MKDIR} ${PREFIX}/share/mesa-demos/images
${MKDIR} ${PREFIX}/share/mesa-demos/data
@for img in `ls ${WRKDIR}/Mesa-${PORTVERSION}/images/*.rgb`; do \
@for img in `${LS} ${WRKDIR}/Mesa-${PORTVERSION}/images/*.rgb`; do \
${INSTALL_DATA} $$img ${SHAREDIR}/images ; \
done
@for dat in `ls ${WRKSRC}/*.dat`; do \
@for dat in `${LS} ${WRKSRC}/*.dat`; do \
${INSTALL_DATA} $$dat ${SHAREDIR}/data ; \
done

View file

@ -15,7 +15,7 @@ CATEGORIES= japanese
MAINTAINER= mita@jp.FreeBSD.org
# dirty, but this is required for version independent-ness
CONFIGURE_ARGS= --with-vfontcap=`ls -1 ${LOCALBASE}/share/VFlib/*/vfontcap | tail -1`
CONFIGURE_ARGS= --with-vfontcap=`${LS} -1 ${LOCALBASE}/share/VFlib/*/vfontcap | tail -1`
CONFIGURE_ARGS+= --enable-freetype-charset16
.include "${MASTERDIR}/Makefile"

View file

@ -199,7 +199,7 @@ pre-patch:
pre-build:
@if [ "$${WRKDIRPREFIX}" -a \
-L "/compat/linux/$${WRKDIRPREFIX}" -a \
x`ls -ld "/compat/linux/$${WRKDIRPREFIX}" 2>/dev/null | awk '/->/{print $$NF;exit 0}END{exit 1}'` = x"$${WRKDIRPREFIX}" ]; \
x`${LS} -ld "/compat/linux/$${WRKDIRPREFIX}" 2>/dev/null | awk '/->/{print $$NF;exit 0}END{exit 1}'` = x"$${WRKDIRPREFIX}" ]; \
then \
${ECHO_MSG} "Please set WRKDIRPREFIX to something which doesn't"; \
${ECHO_MSG} "have a matching symbolic link in /compat/linux."; \

View file

@ -199,7 +199,7 @@ pre-patch:
pre-build:
@if [ "$${WRKDIRPREFIX}" -a \
-L "/compat/linux/$${WRKDIRPREFIX}" -a \
x`ls -ld "/compat/linux/$${WRKDIRPREFIX}" 2>/dev/null | awk '/->/{print $$NF;exit 0}END{exit 1}'` = x"$${WRKDIRPREFIX}" ]; \
x`${LS} -ld "/compat/linux/$${WRKDIRPREFIX}" 2>/dev/null | awk '/->/{print $$NF;exit 0}END{exit 1}'` = x"$${WRKDIRPREFIX}" ]; \
then \
${ECHO_MSG} "Please set WRKDIRPREFIX to something which doesn't"; \
${ECHO_MSG} "have a matching symbolic link in /compat/linux."; \

View file

@ -199,7 +199,7 @@ pre-patch:
pre-build:
@if [ "$${WRKDIRPREFIX}" -a \
-L "/compat/linux/$${WRKDIRPREFIX}" -a \
x`ls -ld "/compat/linux/$${WRKDIRPREFIX}" 2>/dev/null | awk '/->/{print $$NF;exit 0}END{exit 1}'` = x"$${WRKDIRPREFIX}" ]; \
x`${LS} -ld "/compat/linux/$${WRKDIRPREFIX}" 2>/dev/null | awk '/->/{print $$NF;exit 0}END{exit 1}'` = x"$${WRKDIRPREFIX}" ]; \
then \
${ECHO_MSG} "Please set WRKDIRPREFIX to something which doesn't"; \
${ECHO_MSG} "have a matching symbolic link in /compat/linux."; \

View file

@ -77,7 +77,7 @@ localfetch:
${MKDIR} ${LOCAL_TMPDIR}/${lang}
cd ${LOCAL_TMPDIR}/${lang} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${LOCAL_DISTDIR}/php_manual_${lang}${EXTRACT_SUFX} ${EXTRACT_AFTER_ARGS}
(cd ${LOCAL_TMPDIR}/${lang} && /bin/ls -1) | ${PERL} -pe 'print "%%PHPDOCDIR%%/$_";' > ${.CURDIR}/pkg-plist.${lang}
(cd ${LOCAL_TMPDIR}/${lang} && ${LS} -1) | ${PERL} -pe 'print "%%PHPDOCDIR%%/$_";' > ${.CURDIR}/pkg-plist.${lang}
${ECHO_CMD} "@dirrm %%PHPDOCDIR%%" >> ${.CURDIR}/pkg-plist.${lang}
${RM} -rf ${LOCAL_TMPDIR}/${lang}
.endfor

View file

@ -40,7 +40,7 @@ post-patch:
do-install:
@${MKDIR} ${PREFIX}/include/ARPACK++
@for inc in `ls ${WRKSRC}/include` ; do \
@for inc in `${LS} ${WRKSRC}/include` ; do \
${INSTALL_DATA} ${WRKSRC}/include/$$inc ${PREFIX}/include/ARPACK++; \
done
.if !defined(NOPORTDOCS)

View file

@ -28,7 +28,7 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/Lib/libumfpack.a ${PREFIX}/lib
.for mod in AMD UMFPACK
@${MKDIR} ${PREFIX}/include/${mod}
@for inc in `ls ${WRKSRC}/../${mod}/Include` ; do \
@for inc in `${LS} ${WRKSRC}/../${mod}/Include` ; do \
${INSTALL_DATA} ${WRKSRC}/../${mod}/Include/$$inc ${PREFIX}/include/${mod}; \
done
.endfor

View file

@ -52,7 +52,7 @@ post-install:
.if !defined(NOPORTDOCS)
@${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 0555 ${DOCSDIR}
.for ext in html pdf ppt ps txt gif jpg png
@for i in `ls ${WRKSRC}/HOWTO |${GREP} "\.${ext}$$"`; \
@for i in `${LS} ${WRKSRC}/HOWTO |${GREP} "\.${ext}$$"`; \
do ${INSTALL_DATA} ${WRKSRC}/HOWTO/$$i ${DOCSDIR}; done
.endfor
.endif

View file

@ -33,7 +33,7 @@ post-configure:
@${PERL} -pi -e "s=distclean::=distclean:=g" ${WRKSRC}/Makefile
pre-install:
@if ls /var/db/pkg/ | grep -qi ^tetex; then\
@if ${LS} /var/db/pkg/ | grep -qi ^tetex; then\
${ECHO_MSG} "*** WARNING ***";\
${ECHO_MSG} "This port conflicts with teTeX! If you have already installed";\
${ECHO_MSG} "teTeX, you may want to backup the xdvi and MakeTeXPK commands.";\

View file

@ -28,7 +28,7 @@ do-install:
@${REINPLACE_CMD} -e "s|/usr/local/nikto|${PREFIX}/share/nikto|g" ${WRKSRC}/config.txt
@${INSTALL_DATA} ${WRKSRC}/config.txt ${PREFIX}/etc/nikto/
@${MKDIR} ${PREFIX}/share/nikto/ && ${CHMOD} 755 ${PREFIX}/share/nikto/
@for i in `ls ${WRKSRC}/plugins/` ; \
@for i in `${LS} ${WRKSRC}/plugins/` ; \
do \
${INSTALL_SCRIPT} ${WRKSRC}/plugins/$$i ${PREFIX}/share/nikto; \
done

View file

@ -65,7 +65,7 @@ post-install:
.if !defined(NOPORTDOCS)
@${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m 0555 ${DOCSDIR}
.for ext in html pdf ppt ps txt gif jpg png
for i in `ls ${WRKSRC}/HOWTO | ${GREP} "\.${ext}$$"`; \
for i in `${LS} ${WRKSRC}/HOWTO | ${GREP} "\.${ext}$$"`; \
do ${INSTALL_DATA} ${WRKSRC}/HOWTO/$$i ${DOCSDIR}; done
.endfor
.endif

View file

@ -26,6 +26,6 @@ post-install:
@${MKDIR} ${PREFIX}/lib/perl5/site_perl/${PERL_VER}/XML/DT/examples
@${MKDIR} ${PREFIX}/lib/perl5/site_perl/${PERL_VER}/XML/DT/examples/XPath
@${INSTALL_DATA} ${WRKSRC}/examples/XPath/* ${PREFIX}/lib/perl5/site_perl/${PERL_VER}/XML/DT/examples/XPath
@${INSTALL_DATA} `ls -d ${WRKSRC}/examples/* | ${GREP} -v XPath` ${PREFIX}/lib/perl5/site_perl/${PERL_VER}/XML/DT/examples
@${INSTALL_DATA} `${LS} -d ${WRKSRC}/examples/* | ${GREP} -v XPath` ${PREFIX}/lib/perl5/site_perl/${PERL_VER}/XML/DT/examples
.include <bsd.port.mk>

View file

@ -32,7 +32,7 @@ pre-configure:
do-install:
@${MKDIR} ${PREFIX}/lib/aout
cd ${WRKSRC}; \
for l in $$(ls lib*); do \
for l in $$(${LS} lib*); do \
${SETENV} OBJFORMAT=${PORTOBJFORMAT} \
${INSTALL_PROGRAM} $$l ${PREFIX}/lib/aout; \
done