git-svn-id: https://spexeah.com:8443/svn/Asuro@664 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c

This commit is contained in:
kieron
2018-05-05 21:04:48 +00:00
parent e5321d8b46
commit cac366e78c
15 changed files with 70 additions and 17 deletions

View File

@ -8,10 +8,13 @@ while IFS=: read -r line;do
release=$(echo $line | awk '{print $4}')
done <"$file"
linecount=$(./loc.sh | awk '{print $1}')
sourcecount=$(find src -type f | wc -l)
drivercount=$(find src/driver -type f | wc -l)
revision=$(svn info | grep Revision | awk '{print $2}')
fpcversion=$(fpc -h | grep -m 1 version | awk '{print $5}')
makeversion=$(make -v | grep GNU | awk '{print $3}')
nasmversion=$(nasm -v | awk '{print $3'})
compiledate=$(date +"%d-%m-%y")
compiledate=$(date +"%d/%m/%y")
compiletime=$(date +"%T")
echo "unit asuro;" > $outfile
echo " " >> $outfile
@ -25,8 +28,11 @@ echo " VERSION_SUB = '$sub';" >> $outfile
echo " REVISION = '$revision';" >> $outfile
echo " RELEASE = '$release';" >> $outfile
echo " LINE_COUNT = $linecount;" >> $outfile
echo " FILE_COUNT = $sourcecount;" >> $outfile
echo " DRIVER_COUNT = $drivercount;" >> $outfile
echo " FPC_VERSION = '$fpcversion';" >> $outfile
echo " NASM_VERSION = '$nasmversion';" >> $outfile
echo " MAKE_VERSION = '$makeversion';" >> $outfile
echo " COMPILE_DATE = '$compiledate';" >> $outfile
echo " COMPILE_TIME = '$compiletime';" >> $outfile
echo " " >> $outfile