Changeset 24244 for branches/cnb_branches/cnb_branch_20090301/ppArith/src
- Timestamp:
- May 26, 2009, 1:59:32 PM (17 years ago)
- Location:
- branches/cnb_branches/cnb_branch_20090301
- Files:
-
- 4 edited
- 1 copied
-
. (modified) (1 prop)
-
ppArith/src (modified) (1 prop)
-
ppArith/src/Makefile.am (modified) (1 diff)
-
ppArith/src/ppArithVersion.c (modified) (3 diffs)
-
ppArith/src/ppArithVersionDefinitions.h.in (copied) (copied from trunk/ppArith/src/ppArithVersionDefinitions.h.in )
Legend:
- Unmodified
- Added
- Removed
-
branches/cnb_branches/cnb_branch_20090301
- Property svn:mergeinfo changed
-
branches/cnb_branches/cnb_branch_20090301/ppArith/src
- Property svn:ignore
-
old new 7 7 .libs 8 8 ppArith 9 ppArithVersionDefinitions.h
-
- Property svn:ignore
-
branches/cnb_branches/cnb_branch_20090301/ppArith/src/Makefile.am
r23352 r24244 1 1 bin_PROGRAMS = ppArith 2 2 3 # PPARITH_VERSION=`if [ -e ../../VERSION ]; then cat ../../VERSION; else svnversion; fi` 4 # PPARITH_BRANCH=`if [ -e ../../BRANCH ]; then cat ../../BRANCH; else svn info | sed -n -e '/URL:/ h' -e '/Repository Root:/ { x; H; x; s|Repository Root: \(.*\)\nURL: \1\(.*\)|\2| ; s|^/|| ; s|/[a-zA-Z]*/src.*|| ; p }'; fi` 5 # PPARITH_SOURCE=`if [ -e ../../SOURCE ]; then cat ../../SOURCE; else svn info | sed -n -e 's/Repository UUID: // p'; fi` 6 # 7 # # Force recompilation of ppArithVersion.c, since it gets the version information 8 # ppArithVersion.c: FORCE 9 # touch ppArith.c 10 # FORCE: ; 3 if HAVE_SVNVERSION 4 PPARITH_VERSION=`$(SVNVERSION) ..` 5 else 6 PPARITH_VERSION="UNKNOWN" 7 endif 11 8 12 ppArith_CPPFLAGS = $(PSLIB_CFLAGS) $(PSMODULE_CFLAGS) $(PPSTATS_CFLAGS) $(PSPHOT_CFLAGS) $(PPARITH_CFLAGS) -DPPARITH_VERSION=$(SVN_VERSION) -DPPARITH_BRANCH=$(SVN_BRANCH) -DPPARITH_SOURCE=$(SVN_SOURCE) 13 ppArith_LDFLAGS = $(PSLIB_LIBS) $(PSMODULE_LIBS) $(PPSTATS_LIBS) $(PSPHOT_LIBS) $(PPARITH_LIBS) 9 if HAVE_SVN 10 PPARITH_BRANCH=`$(SVN) info .. | $(SED) -n -e '/URL:/ h' -e '/Repository Root:/ { x; H; x; s|Repository Root: \(.*\)\nURL: \1\(.*\)|\2| ; s|^/|| ; s|/[a-zA-Z]*/src.*|| ; p }'` 11 PPARITH_SOURCE=`$(SVN) info | $(SED) -n -e 's/Repository UUID: // p'` 12 else 13 PPARITH_BRANCH="UNKNOWN" 14 PPARITH_SOURCE="UNKNOWN" 15 endif 16 17 # Force recompilation of ppArithVersion.c, since it gets the version information 18 ppArithVersion.c: ppArithVersionDefinitions.h 19 ppArithVersionDefinitions.h: ppArithVersionDefinitions.h.in FORCE 20 -$(RM) ppArithVersionDefinitions.h 21 $(SED) -e "s|@PPARITH_VERSION@|\"$(PPARITH_VERSION)\"|" -e "s|@PPARITH_BRANCH@|\"$(PPARITH_BRANCH)\"|" -e "s|@PPARITH_SOURCE@|\"$(PPARITH_SOURCE)\"|" ppArithVersionDefinitions.h.in > ppArithVersionDefinitions.h 22 FORCE: ; 23 24 BUILT_SOURCES = ppArithVersionDefinitions.h 25 26 27 ppArith_CPPFLAGS = $(PSLIB_CFLAGS) $(PSMODULE_CFLAGS) $(PPSTATS_CFLAGS) $(PPARITH_CFLAGS) 28 ppArith_LDFLAGS = $(PSLIB_LIBS) $(PSMODULE_LIBS) $(PPSTATS_LIBS) $(PPARITH_LIBS) 14 29 15 30 ppArith_SOURCES = \ -
branches/cnb_branches/cnb_branch_20090301/ppArith/src/ppArithVersion.c
r23352 r24244 21 21 22 22 #include "ppArith.h" 23 #include "ppArithVersionDefinitions.h" 23 24 24 25 #ifndef PPARITH_VERSION … … 32 33 #endif 33 34 34 #define xstr(s) str(s)35 #define str(s) #s36 37 35 psString ppArithVersion(void) 38 36 { 39 37 char *value = NULL; 40 psStringAppend(&value, "%s@%s", xstr(PPARITH_BRANCH), xstr(PPARITH_VERSION));38 psStringAppend(&value, "%s@%s", PPARITH_BRANCH, PPARITH_VERSION); 41 39 return value; 42 40 } … … 44 42 psString ppArithSource(void) 45 43 { 46 return psStringCopy( xstr(PPARITH_SOURCE));44 return psStringCopy(PPARITH_SOURCE); 47 45 } 48 46
Note:
See TracChangeset
for help on using the changeset viewer.
