summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2005-09-19 20:55:44 +0000
committerphk <phk@FreeBSD.org>2005-09-19 20:55:44 +0000
commite825dac28c9946c7a318f73c021e65cb54ad9b88 (patch)
treefea8b7966fde0b03f75083d5434d66452145f6bd /tools
parent6a408cbd71bd73e59f73f6e904c7247467a361a1 (diff)
downloadFreeBSD-src-e825dac28c9946c7a318f73c021e65cb54ad9b88.zip
FreeBSD-src-e825dac28c9946c7a318f73c021e65cb54ad9b88.tar.gz
Dump the environment for reference.
Add a function to add customization commands.
Diffstat (limited to 'tools')
-rw-r--r--tools/tools/nanobsd/nanobsd.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/tools/tools/nanobsd/nanobsd.sh b/tools/tools/nanobsd/nanobsd.sh
index 28edc76..5b1ecd9 100644
--- a/tools/tools/nanobsd/nanobsd.sh
+++ b/tools/tools/nanobsd/nanobsd.sh
@@ -84,6 +84,7 @@ clean_build ( ) (
rm -rf ${MAKEOBJDIRPREFIX}
fi
mkdir -p ${MAKEOBJDIRPREFIX}
+ printenv > ${MAKEOBJDIRPREFIX}/_.env
)
make_conf_build ( ) (
@@ -344,6 +345,12 @@ create_i386_diskimage ( ) (
#######################################################################
#######################################################################
+
+customize_cmd () {
+ NANO_CUSTOMIZE="$NANO_CUSTOMIZE $1"
+}
+
+#######################################################################
# Parse arguments
args=`getopt c: $*`
@@ -368,7 +375,6 @@ do
esac
done
-
#######################################################################
# Internal variables
if [ "x${NANO_OBJ}" = "x" ] ; then
@@ -404,7 +410,7 @@ export NANO_SRC
export NANO_WORLDDIR
#######################################################################
-# Set up object directory
+# As simple as that...
clean_build
make_conf_build
OpenPOWER on IntegriCloud