Project

General

Profile

Download (574 Bytes) Statistics
| Branch: | Tag: | Revision:
1
#!/bin/sh
2

    
3
MAX_LEN=32
4
TRUNCATE="sed -e s/\(.\{1,$MAX_LEN\}\).*/\1/"
5

    
6
DATE=`LC_ALL=C LANG=C date +%Y%m%d-%H%M%S`
7
BY=`whoami`
8
HOST=`hostname | $TRUNCATE`
9
BYHOST=`echo ${BY}@${HOST} | $TRUNCATE`
10
SVNREV=`svn info | grep \^Revision: | cut -c 11-`
11

    
12
svn st | grep \^M >/dev/null
13

    
14
[ "$?" -eq "0" ] && SVNREV=${SVNREV}-unclean
15

    
16
echo "#ifndef _COMPILE_H"
17
echo "#define _COMPILE_H"
18
echo
19
echo /\* This file is auto generated \*/
20
echo \#define COMPILE_DATE \"${DATE}\"
21
echo \#define COMPILE_BY \"${BYHOST}\"
22
echo \#define COMPILE_SVNREV \"${SVNREV}\"
23
echo
24
echo "#endif /* _COMPILE_H */"
    (1-1/1)
    Add picture from clipboard (Maximum size: 48.8 MB)