X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=source%2Fscript%2Fbuild_env.sh;fp=source%2Fscript%2Fbuild_env.sh;h=eb54f37aeda71a2a1757b325bffd488c12f110a2;hb=6bca4ca307d55b6dc888e56cee47aebcddbce786;hp=0000000000000000000000000000000000000000;hpb=7fd70fa738b636089bcc6c961aa3eaa02f20dda2;p=samba diff --git a/source/script/build_env.sh b/source/script/build_env.sh new file mode 100755 index 0000000..eb54f37 --- /dev/null +++ b/source/script/build_env.sh @@ -0,0 +1,41 @@ +#!/bin/sh + +if [ $# -lt 3 ] +then + echo "Usage: $0 srcdir builddir compiler" + exit 1 +fi + +uname=`uname -a` +date=`date` +srcdir=$1 +builddir=$2 +compiler=$3 + +if [ ! "x$USER" = "x" ]; then + whoami=$USER +else + if [ ! "x$LOGNAME" = "x" ]; then + whoami=$LOGNAME + else + whoami=`whoami || id -un` + fi +fi + +host=`hostname` + +cat <