[c0fef4]: gen_version.sh Maximize Restore History

Download this file

gen_version.sh    11 lines (7 with data), 240 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
#!/bin/sh
VERSIONNUMBER_FILE=versionnumber.txt
VERSION_INFO=version.txt
vver=$(cat $VERSIONNUMBER_FILE)
vdate=$(date +"%Y%m%d %T")
vsdcc=$(sdcc --version | cut -d \# -f 2 | cut -d ' ' -f 1)
echo $vver $vdate SDCC\#$vsdcc > $VERSION_INFO