git-svn-id: https://spexeah.com:8443/svn/Asuro@663 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c
This commit is contained in:
@ -6,10 +6,13 @@ while IFS=: read -r line;do
|
||||
minor=$(echo $line | awk '{print $2}')
|
||||
sub=$(echo $line | awk '{print $3}')
|
||||
release=$(echo $line | awk '{print $4}')
|
||||
linecount=$(./loc.sh | awk '{print $1}')
|
||||
done <"$file"
|
||||
linecount=$(./loc.sh | awk '{print $1}')
|
||||
revision=$(svn info | grep Revision | awk '{print $2}')
|
||||
echo $major"."$minor"."$sub"-r"$revision$release
|
||||
fpcversion=$(fpc -h | grep -m 1 version | awk '{print $5}')
|
||||
nasmversion=$(nasm -v | awk '{print $3'})
|
||||
compiledate=$(date +"%d-%m-%y")
|
||||
compiletime=$(date +"%T")
|
||||
echo "unit asuro;" > $outfile
|
||||
echo " " >> $outfile
|
||||
echo "interface" >> $outfile
|
||||
@ -22,6 +25,10 @@ echo " VERSION_SUB = '$sub';" >> $outfile
|
||||
echo " REVISION = '$revision';" >> $outfile
|
||||
echo " RELEASE = '$release';" >> $outfile
|
||||
echo " LINE_COUNT = $linecount;" >> $outfile
|
||||
echo " FPC_VERSION = '$fpcversion';" >> $outfile
|
||||
echo " NASM_VERSION = '$nasmversion';" >> $outfile
|
||||
echo " COMPILE_DATE = '$compiledate';" >> $outfile
|
||||
echo " COMPILE_TIME = '$compiletime';" >> $outfile
|
||||
echo " " >> $outfile
|
||||
echo "implementation" >> $outfile
|
||||
echo " " >> $outfile
|
||||
|
Reference in New Issue
Block a user