Skip to content

Commit

Permalink
nrelease: Verify that $DPORTS_TREE indeed exists as a directory.
Browse files Browse the repository at this point in the history
Also, if it exists, output its name so it can be looked up in the
logfile (in case there might have been a typo when overriding the
default).
  • Loading branch information
Sascha Wildner committed May 29, 2014
1 parent e30ed94 commit aa3eeb1
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions nrelease/Makefile
Expand Up @@ -156,17 +156,18 @@ check:
@echo "Your machine does not have cdrtools installed. You can install it with:"
@echo " pkg install cdrtools"
.endif
.if !defined(DPORTS_PATH)
@echo "Please set DPORTS_PATH to the dports tree that shall be used for"
@echo "package building. For example /usr/dports. See the Makefile"
@echo "in /usr if you are unfamiliar with dports."
.endif
@if [ ! -d ${DPORTS_PATH} ]; then \
echo "${DPORTS_PATH} does not exist."; \
echo ""; \
echo "Please set DPORTS_PATH to the dports tree that shall be used for"; \
echo "package building. The default is /usr/dports. See the Makefile in"; \
echo "/usr if you are unfamiliar with dports."; \
/usr/bin/false; \
fi
.if !exists(/usr/local/bin/mkisofs) && !exists(/usr/pkg/bin/mkisofs)
@/usr/bin/false
.endif
.if !defined(DPORTS_PATH)
@/usr/bin/false
.endif
@echo "Using ${DPORTS_PATH} as the dports tree."

buildworld1 buildworld2:
cd ${.CURDIR}/..; \
Expand Down

0 comments on commit aa3eeb1

Please sign in to comment.