r3275 - trunk/src/target/gsm/src/gsmd
jserv at sita.openmoko.org
jserv at sita.openmoko.org
Thu Oct 25 20:57:29 CEST 2007
Author: jserv
Date: 2007-10-25 20:57:25 +0200 (Thu, 25 Oct 2007)
New Revision: 3275
Modified:
trunk/src/target/gsm/src/gsmd/Makefile.am
Log:
formal version generation for gsmd-version.h considering release
version or not (svn repository).
Modified: trunk/src/target/gsm/src/gsmd/Makefile.am
===================================================================
--- trunk/src/target/gsm/src/gsmd/Makefile.am 2007-10-25 18:24:42 UTC (rev 3274)
+++ trunk/src/target/gsm/src/gsmd/Makefile.am 2007-10-25 18:57:25 UTC (rev 3275)
@@ -4,8 +4,13 @@
gsmd-version.h:
echo -e '#ifndef GSMD_VERSION' \
- '\n#define GSMD_VERSION "'`svnversion`'"' \
- '\n#endif' > gsmd-version.h
+ '\n#define GSMD_VERSION "$(VERSION)" \\' > gsmd-version.h
+ if test -d .svn; then \
+ echo -e '\t"+'`svnversion`'"' >> gsmd-version.h; \
+ else \
+ echo -e '\t/* release version */' >> gsmd-version.h; \
+ fi
+ echo -e '#endif' >> gsmd-version.h
BUILT_SOURCES = gsmd-version.h
sbin_PROGRAMS = gsmd
More information about the commitlog
mailing list