diff options
author | Daniil Baturin <daniil@baturin.org> | 2015-04-05 22:26:57 +0600 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2015-04-05 22:26:57 +0600 |
commit | 7ffcf4d622e4f9608574033c328cba1f7f7c9ca5 (patch) | |
tree | fe5b69775b33bc94be796ee1345653a080ea3812 /mkconfig.sh | |
parent | df3476d7b8b2653cf09abd6c4d310ab8d6598097 (diff) | |
download | hvinfo-7ffcf4d622e4f9608574033c328cba1f7f7c9ca5.tar.gz hvinfo-7ffcf4d622e4f9608574033c328cba1f7f7c9ca5.zip |
Build scripts revamp.
Diffstat (limited to 'mkconfig.sh')
-rwxr-xr-x | mkconfig.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/mkconfig.sh b/mkconfig.sh new file mode 100755 index 0000000..1abfa94 --- /dev/null +++ b/mkconfig.sh @@ -0,0 +1,24 @@ +#!/bin/sh + +HVINFO_LINUX=False +HVINFO_FREEBSD=False + +VERSION=$(cat VERSION) + +OS=$(uname) +case $OS in + Linux) + HVINFO_LINUX=True + ;; + FreeBSD) + HVINFO_FREEBSD=True + ;; + *) + echo "Operating system $OS is not supported" + exit 1 +esac + +gnatprep -D LINUX=$HVINFO_LINUX \ + -D FREEBSD=$HVINFO_FREEBSD \ + -D VERSION=\"$VERSION\" \ + src/config.ads.in src/config.ads |