Subversion Repositories HelenOS-historic

Rev

Rev 547 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
43 jermar 1
#! /bin/sh
2
 
455 decky 3
function syntax {
4
	echo "Syntax:"
550 palkovsky 5
	echo " build "
455 decky 6
	echo
7
}
328 jermar 8
 
455 decky 9
ARGS=""
423 decky 10
while [ "$#" -gt 0 ]; do
11
	case "$1" in
12
		*)
455 decky 13
			syntax
423 decky 14
			exit 1
15
			;;
16
	esac
17
	shift
18
done
328 jermar 19
 
462 decky 20
TAG="`svnversion . 2> /dev/null`"
21
TIMESTAMP="`date "+%Y-%m-%d %H:%M:%S" 2> /dev/null`"
464 decky 22
if [ -z "$TAG" ] || [ "$TAG" == "exported" ]; then
463 decky 23
	TAG="Built on $TIMESTAMP for $ARCH"
462 decky 24
else
463 decky 25
	TAG="Revision $TAG (built on $TIMESTAMP for $ARCH)"
462 decky 26
fi
27
 
550 palkovsky 28
tools/config.py default
29
make all "TAG=$TAG" $ARGS