summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjserv <jserv@99fdad57-331a-0410-800a-d7fa5415bdb3>2007-10-25 18:57:25 +0000
committerjserv <jserv@99fdad57-331a-0410-800a-d7fa5415bdb3>2007-10-25 18:57:25 +0000
commit1f4e20745a0b0da82eebc8cd2ae5f1e6db397b08 (patch)
treec35d51fd2b12a98513d9df84def46dbc795b34a3
parent0304fd5ff6f68d3e6af2c5d426eaccb108991ef6 (diff)
formal version generation for gsmd-version.h considering release
version or not (svn repository). git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3275 99fdad57-331a-0410-800a-d7fa5415bdb3
-rw-r--r--src/gsmd/Makefile.am9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gsmd/Makefile.am b/src/gsmd/Makefile.am
index 9ac45ee..06d925c 100644
--- a/src/gsmd/Makefile.am
+++ b/src/gsmd/Makefile.am
@@ -4,8 +4,13 @@ plugindir = $(libdir)/gsmd
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
personal git repositories of Harald Welte. Your mileage may vary