Commit 27846e1b authored by Franco Fichtner's avatar Franco Fichtner

pkg: refactor using PREFIX, but this time for real

parent b404a6fc
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment