lilypond-0.0.50
[lilypond.git] / bin / make_version
blob29b768c1e8925c6c964cb3868c221ea21cae44af
1 #!/bin/sh
3 #shift;
4 if test "x$1" = x;
5 then
6 versionfile=".version"
7 else
8 versionfile=$1;
9 fi
11 cat $versionfile| sed 's/#.*$//g'|sed 's/\([^ ]*\)[\t ]*=[ \t]*\([^ ]*\)$/#define \1 \"\2\"/g'
12 echo
13 if [ -z $CXX ]
14 then
15 COMPILER=unknown
16 else
17 COMPILER="$CXX `$CXX --version`"
20 echo "#define COMPILER "\"$COMPILER\"