Browse Source

add git version info.

master
root 16 years ago
parent
commit
55791a9b73
  1. 2
      Targets/Bonito2fdev/conf/Bonito.2fdev.firewall
  2. 6
      conf/newvers.sh

2
Targets/Bonito2fdev/conf/Bonito.2fdev.firewall

@ -146,9 +146,9 @@ em* at pci? dev ? function ?
#select mod_usb_uhci
#select mod_usb_ohci
#select mod_usb_kbd
atp* at pci? dev ? function ? #sata atp8620
sata* at atp?
#### IDE controllers
pciide* at pci ? dev ? function ? flags 0x0000

6
conf/newvers.sh

@ -40,7 +40,7 @@ fi
touch version
v=`cat version` u=${USER-root} d=`pwd` h=`hostname` t=`date`
id=`basename ${d}`
git=`git log -1|head -n 3|perl -e 'local $/;$a=<>;$a=~s/\n/ /g;print $a;'`
ost="PMON2000"
osr="2.1"
@ -50,11 +50,11 @@ char osrelease[] = "${osr}";
char osversion[] = "${id}#${v}";
char sccs[8] = { ' ', ' ', ' ', ' ', '@', '(', '#', ')' };
char vers[] =
"${ost} ${osr} (${id}) #${v}: ${t}";
"${ost} ${osr} (${id}) #${v}: ${t} ${git}";
eof
cat >vers.h <<eof
#define VERS "${ost} ${osr} (${id}) #${v}: ${t}\r\nCopyright (c) 2000-2003 Opsycon AB, www.opsycon.se"
#define VERS "${ost} ${osr} (${id}) #${v}: ${t}\r\n"
eof
expr ${v} + 1 > version

Loading…
Cancel
Save