summaryrefslogtreecommitdiff
path: root/pkgtools/bootstrap-mk-files
diff options
context:
space:
mode:
authorasau <asau>2013-02-23 23:52:32 +0000
committerasau <asau>2013-02-23 23:52:32 +0000
commite6c4fafbe5dde4f1159123eb5229c8c9de37e5db (patch)
tree2e44efd3314df41510c7fc7464cc4f8e6c7d4ed8 /pkgtools/bootstrap-mk-files
parent6c9b1884557dc405b6f475e3fd620d38b9f3342d (diff)
downloadpkgsrc-e6c4fafbe5dde4f1159123eb5229c8c9de37e5db.tar.gz
Help people using mk files outside pkgsrc, provide saner default values.
Diffstat (limited to 'pkgtools/bootstrap-mk-files')
-rwxr-xr-xpkgtools/bootstrap-mk-files/files/bootstrap.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgtools/bootstrap-mk-files/files/bootstrap.sh b/pkgtools/bootstrap-mk-files/files/bootstrap.sh
index b27bacf9674..d9a02f19920 100755
--- a/pkgtools/bootstrap-mk-files/files/bootstrap.sh
+++ b/pkgtools/bootstrap-mk-files/files/bootstrap.sh
@@ -12,6 +12,14 @@
# - SYSCONFDIR
#
+: ${CP:=cp}
+: ${SED:=sed}
+: ${OPSYS:=$(uname)}
+: ${ROOT_USER:=$(id -un 0)}
+: ${ROOT_GROUP:=$(id -gn "${ROOT_USER}")}
+: ${MK_DST:=/usr/local/share/mk}
+: ${SYSCONFDIR:=/usr/local/etc}
+
for file in bsd.README bsd.dep.mk bsd.depall.mk bsd.doc.mk bsd.files.mk \
bsd.hostprog.mk bsd.inc.mk bsd.info.mk bsd.kernobj.mk bsd.kinc.mk \
bsd.kmod.mk bsd.lib.mk bsd.links.mk bsd.man.mk bsd.nls.mk \