3 # timestampVersion - Collect source version info and insert it into firmware
5 STATUSFILE=files/etc/Compile_info.txt
6 #Nickname=`grep RELEASE: include/{version,toplevel}.mk | cut -d "=" -f 2`
7 Nickname=17.01-snapshot
9 echo LEDE $Nickname `scripts/getver.sh` / `date "+%F %H:%M"` > $STATUSFILE
10 echo "---" >> $STATUSFILE
11 echo "main "`(git show --format="%cd %h %s" --abbrev=7 --date=short | head -n 1 | cut -b1-60)` >> $STATUSFILE
12 echo "luci "`(cd feeds/luci && git show --format="%cd %h %s" --abbrev=7 --date=short | head -n 1 | cut -b1-60)` >> $STATUSFILE
13 echo "packages "`(cd feeds/packages && git show --format="%cd %h %s" --abbrev=7 --date=short | head -n 1 | cut -b1-60)` >> $STATUSFILE
14 echo "routing "`(cd feeds/routing && git show --format="%cd %h %s" --abbrev=7 --date=short | head -n 1 | cut -b1-60)` >> $STATUSFILE
17 # Override git/svn timestamp after r48583-48594, set initial clock to now
18 date +%s > version.date