X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=make-config.sh;h=3f58b71f83993cabd5e69c0093e2dd0557f7416e;hb=19ffc2c1611e82a4397a98778fbf66430b1171dc;hp=7664551dc5b5c4ef669ee72e9f8a27281e92b436;hpb=146f785ee2ee14077b815fd3cb17454774b04379;p=sbcl.git diff --git a/make-config.sh b/make-config.sh index 7664551..3f58b71 100644 --- a/make-config.sh +++ b/make-config.sh @@ -18,9 +18,6 @@ echo //entering make-config.sh -echo //checking that we are not root -if [ `id -u` -eq 0 ] ; then echo 'Argh! we are (fake)root!'; exit 1; fi; - echo //ensuring the existence of output/ directory if [ ! -d output ] ; then mkdir output; fi @@ -132,6 +129,10 @@ case `uname` in sbcl_os="openbsd" ln -s Config.$sbcl_arch-openbsd Config ;; + NetBSD) + printf ' :netbsd' >> $ltf + ln -s Config.$sbcl_arch-netbsd Config + ;; *) echo unsupported BSD variant: `uname` exit 1 @@ -213,5 +214,9 @@ echo ')' >> $ltf # Make a unique ID for this build (to discourage people from # mismatching sbcl and *.core files). -echo '"'`hostname`-`whoami`-`date +%F-%H-%M-%S`'"' > output/build-id.tmp +if [ `uname` = "SunOS" ] ; then + # use /usr/xpg4/bin/id instead of /usr/bin/id + PATH=/usr/xpg4/bin:$PATH +fi +echo '"'`hostname`-`id -un`-`date +%Y-%m-%d-%H-%M-%S`'"' > output/build-id.tmp