pkg: refactor using PREFIX, but this time for real

This commit is contained in:
Franco Fichtner 2015-08-07 17:00:54 +02:00
parent b404a6fcc1
commit 27846e1b0e

View File

@ -19,12 +19,11 @@ install:
plist:
.for TREE in ${TREES}
@(cd ${TREE}; find * -type f) | while read FILE; do \
FILE="$${FILE%%.in}"; \
FILE="$${FILE%%.in}"; PREFIX=""; \
if [ $${FILE%%.sample} != $${FILE} ]; then \
echo "@sample ${ROOT}/${TREE}/$${FILE}"; \
else \
echo "${ROOT}/${TREE}/$${FILE}"; \
PREFIX="@sample "; \
fi; \
echo "$${PREFIX}${ROOT}/${TREE}/$${FILE}"; \
done
.endfor