]> git.saurik.com Git - apple/xnu.git/blobdiff - SETUP/setup.sh
xnu-3247.1.106.tar.gz
[apple/xnu.git] / SETUP / setup.sh
old mode 100644 (file)
new mode 100755 (executable)
index 7924785..7cb532f
@@ -1,4 +1,6 @@
-export SRCROOT=$(pwd)
-export OBJROOT=$SRCROOT/BUILD/obj
-export DSTROOT=$SRCROOT/BUILD/dst
-export SYMROOT=$SRCROOT/BUILD/sym
+setup_tmp=`mktemp -d -t setup`
+printenv | sort > "${setup_tmp}/orig"
+make print_exports | grep -E -v '^(MAKE|MFLAGS|SHLVL)' > "${setup_tmp}/exports"
+eval `comm -13 "${setup_tmp}/orig" "${setup_tmp}/exports" | sed 's,^\(.*\)$,export "\1",'`
+
+