Browse Source

Enable "vers" command to show branch name for all target

Thanks xiaqichao <xiaqichao@ict.ac.cn>

Signed-off-by: mengxiaofu <mengxiaofu@ict.ac.cn>
master
sizhiying 13 years ago
committed by mengxiaofu
parent
commit
cdaf5f9bf3
  1. 2
      Makefile.inc
  2. 2
      conf/newvers.sh

2
Makefile.inc

@ -176,7 +176,7 @@ crtend.o: crtend.c Makefile
${NORMAL_C_C}
newvers: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP}
sh $S/conf/newvers.sh ${TARGET}
sh $S/conf/newvers.sh
${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c vers.c
clean::

2
conf/newvers.sh

@ -39,7 +39,7 @@ fi
touch version
v=`cat version` u=${USER-root} d=`pwd` h=`hostname` t=`date`
id=`basename $1`
id=`basename ${d}`
git=`git log -1|head -n 3|perl -e 'local $/;$a=<>;$a=~s/\n/ /g;print $a;'`
ost="PMON2011"
osr="2.1"

Loading…
Cancel
Save