Carlin BinghamAdd OpenBSD 6.4 syscallsa8054067 years agoHistory
74 lines · 2.3 KB · Shell
RawDownload
#!/bin/shset -x if test `uname` = Plan9; then    export MYR_MUSE=`pwd`/muse/6.out    export MYR_MC=`pwd`/6/6.out    export MYR_RT=`pwd`/rt/_myrrt.6else    export MYR_MUSE=`pwd`/muse/muse    export MYR_MC=`pwd`/6/6m    export MYR_RT=`pwd`/rt/_myrrt.ofi # build without an obj/ dir, so we don't need to deal with# creating the heirarchy for the compiler. mbld usually# deals with that, but the bootstrap doesn't have it../mbldwrap.shcp obj/mbld/mbld xmbld./xmbld -o '' clean tags(){	case `uname` in	*Linux*)	echo -Tposixy -Tlinux -Tfsbase -Tfutex;;	*Darwin*)	echo -Tposixy -Tosx -Tfutex;;	*FreeBSD*)	echo -Tposixy -Tfreebsd -Tfsbase -Tfutex;;	*NetBSD*)	echo -Tposixy -Tnetbsd;;	*OpenBSD*)	echo -Tposixy -Topenbsd:6.4 -Tfsbase -Tfutex;;	*Plan9*)	echo -Tplan9;;	esac	case `uname -m` in	*amd64*)	echo -Tx64	;;	*x86_64*)	echo -Tx64	;;	esac}  bootscript=mk/bootstrap/bootstrap+`uname -s`-`uname -m`.shecho '#!/bin/sh' > $bootscriptecho '# This script is generated by genbootstrap.sh' >> $bootscriptecho '# to regenerate, run "make bootstrap"' >> $bootscriptecho '#######################################' # we output into obj; things can fail if we don't create those dirs echo 'mkdir -p obj/lib/bio' >> $bootscriptecho 'mkdir -p obj/lib/bld.sub' >> $bootscriptecho 'mkdir -p obj/lib/crypto' >> $bootscriptecho 'mkdir -p obj/lib/date' >> $bootscriptecho 'mkdir -p obj/lib/escfmt' >> $bootscriptecho 'mkdir -p obj/lib/fileutil' >> $bootscriptecho 'mkdir -p obj/lib/flate' >> $bootscriptecho 'mkdir -p obj/lib/http' >> $bootscriptecho 'mkdir -p obj/lib/inifile' >> $bootscriptecho 'mkdir -p obj/lib/iter' >> $bootscriptecho 'mkdir -p obj/lib/json' >> $bootscriptecho 'mkdir -p obj/lib/math' >> $bootscriptecho 'mkdir -p obj/lib/regex' >> $bootscriptecho 'mkdir -p obj/lib/std' >> $bootscriptecho 'mkdir -p obj/lib/sys' >> $bootscriptecho 'mkdir -p obj/lib/testr' >> $bootscriptecho 'mkdir -p obj/lib/thread' >> $bootscriptecho 'mkdir -p obj/mbld' >> $bootscript echo 'pwd=`pwd`' >> $bootscriptecho 'set -x' >> $bootscript# mbld needs to be run without an output dir so we dont# run into mkdir issues../xmbld -o '' -j1 -Bnone mbld:mbld `tags` | \    grep '^	' | \    sed "s:`pwd`:\$pwd:g" | \    tee -a $bootscriptecho 'true' >> $bootscriptchmod +x $bootscriptrm ./xmbld