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