Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
ebaef43b
Commit
ebaef43b
authored
Jan 27, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make: honour spaces during plist/install stage
parent
b1120c8e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
tree.mk
Mk/tree.mk
+8
-8
No files found.
Mk/tree.mk
View file @
ebaef43b
...
...
@@ -11,18 +11,18 @@ install${TARGET}: force
mkdir -p ${DESTDIR}${ROOT${TARGET}}$${REALTARGET}; \
cp -vr ${TREE} ${DESTDIR}${ROOT${TARGET}}$${REALTARGET}
@(cd ${TREE}; find * -type f) | while read FILE; do \
if [
$${FILE%%.in} != $${FILE}
]; then \
if [
"$${FILE%%.in}" != "$${FILE}"
]; then \
sed -i '' \
-e "s=%%CORE_PACKAGESITE%%=${CORE_PACKAGESITE}=g" \
-e "s=%%CORE_REPOSITORY%%=${CORE_REPOSITORY}=g" \
${DESTDIR}${ROOT${TARGET}}/${TREE}/$${FILE}
; \
mv -v
${DESTDIR}${ROOT${TARGET}}/${TREE}/$${FILE}
\
${DESTDIR}${ROOT${TARGET}}/${TREE}/$${FILE%%.in}
; \
"${DESTDIR}${ROOT${TARGET}}/${TREE}/$${FILE}"
; \
mv -v
"${DESTDIR}${ROOT${TARGET}}/${TREE}/$${FILE}"
\
"${DESTDIR}${ROOT${TARGET}}/${TREE}/$${FILE%%.in}"
; \
fi; \
FILE="$${FILE%%.in}"; \
if [ -n "${NO_SAMPLE}" -a
$${FILE%%.sample} != $${FILE}
]; then \
mv -v
${DESTDIR}${ROOT${TARGET}}/${TREE}/$${FILE}
\
${DESTDIR}${ROOT${TARGET}}/${TREE}/$${FILE%%.sample}
; \
if [ -n "${NO_SAMPLE}" -a
"$${FILE%%.sample}" != "$${FILE}"
]; then \
mv -v
"${DESTDIR}${ROOT${TARGET}}/${TREE}/$${FILE}"
\
"${DESTDIR}${ROOT${TARGET}}/${TREE}/$${FILE%%.sample}"
; \
fi; \
done
.endfor
...
...
@@ -31,7 +31,7 @@ plist${TARGET}: force
.for TREE in ${TREES${TARGET}}
@(cd ${TREE}; find * -type f) | while read FILE; do \
FILE="$${FILE%%.in}"; PREFIX=""; \
if [ -z "${NO_SAMPLE}" -a
$${FILE%%.sample} != $${FILE}
]; then \
if [ -z "${NO_SAMPLE}" -a
"$${FILE%%.sample}" != "$${FILE}"
]; then \
PREFIX="@sample "; \
fi; \
if [ -n "${NO_SAMPLE}" ]; then \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment