/[projects]/smsdaemon/genversion.sh
ViewVC logotype

Annotation of /smsdaemon/genversion.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 101 - (hide annotations) (download) (as text)
Mon Jun 16 16:41:18 2008 UTC (15 years, 11 months ago) by torben
File MIME type: application/x-sh
File size: 420 byte(s)
Finally is the version.h working as i want to

Added a StatusPlugin

1 torben 101 #!/bin/bash
2     AUTHOR="Torben H. Nielsen"
3     APPNAME="smsdaemon"
4    
5     VER_MAJOR=0
6     VER_MINOR=1
7    
8     SVNVER=`svnversion`
9     SVNVER="svn version: $SVNVER"
10    
11     echo "#ifndef __VERSION_H__" > version.h
12     echo "#define __VERSION_H__" >> version.h
13     echo "" >> version.h
14    
15     echo "#define VERSION \"$APPNAME v$VER_MAJOR.$VER_MINOR by $AUTHOR\"">> version.h
16     echo "#define SVNVERSION \"$SVNVER\"" >> version.h
17    
18    
19     echo "#endif // __VERSION_H__" >> version.h

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.20