Changeset 23806
- Timestamp:
- Apr 9, 2009, 10:57:59 PM (17 years ago)
- Location:
- trunk/pswarp
- Files:
-
- 1 added
- 4 edited
-
configure.ac (modified) (1 diff)
-
src (modified) (1 prop)
-
src/Makefile.am (modified) (1 diff)
-
src/pswarpVersion.c (modified) (2 diffs)
-
src/pswarpVersionDefinitions.h.in (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pswarp/configure.ac
r23790 r23806 37 37 echo "PSWARP_LIBS: $PSWARP_LIBS" 38 38 39 IPP_VERSION(PSWARP) 40 AC_SUBST(PSWARP_VERSION,[$PSWARP_VERSION]) 41 AC_SUBST(PSWARP_BRANCH,[$PSWARP_BRANCH]) 42 AC_SUBST(PSWARP_SOURCE,[$PSWARP_SOURCE]) 39 IPP_VERSION 43 40 44 41 AC_SUBST([PSWARP_CFLAGS]) -
trunk/pswarp/src
- Property svn:ignore
-
old new 13 13 config.h.in 14 14 stamp-h1 15 pswarpVersionDefinitions.h
-
- Property svn:ignore
-
trunk/pswarp/src/Makefile.am
r23790 r23806 1 1 bin_PROGRAMS = pswarp 2 2 3 if HAVE_SVNVERSION 4 PSWARP_VERSION=`$(SVNVERSION) ../..` 5 else 6 PSWARP_VERSION="UNKNOWN" 7 endif 8 9 if HAVE_SVN 10 PSWARP_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 PSWARP_SOURCE=`$(SVN) info | $(SED) -n -e 's/Repository UUID: // p'` 12 else 13 PSWARP_BRANCH="UNKNOWN" 14 PSWARP_SOURCE="UNKNOWN" 15 endif 16 3 17 # Force recompilation of pswarpVersion.c, since it gets the version information 4 pswarpVersion.c: FORCE 5 touch pswarpVersion.c 18 pswarpVersion.c: pswarpVersionDefinitions.h 19 pswarpVersionDefinitions.h: pswarpVersionDefinitions.h.in FORCE 20 -$(RM) pswarpVersionDefinitions.h 21 $(SED) -e "s|@PSWARP_VERSION@|\"$(PSWARP_VERSION)\"|" -e "s|@PSWARP_BRANCH@|\"$(PSWARP_BRANCH)\"|" -e "s|@PSWARP_SOURCE@|\"$(PSWARP_SOURCE)\"|" pswarpVersionDefinitions.h.in > pswarpVersionDefinitions.h 6 22 FORCE: ; 7 23 8 pswarp_CPPFLAGS = $(PSLIB_CFLAGS) $(PSMODULE_CFLAGS) $(PPSTATS_CFLAGS) $(PSPHOT_CFLAGS) $(PSWARP_CFLAGS) -DPSWARP_VERSION=\"$(PSWARP_VERSION)\" -DPSWARP_BRANCH=\"$(PSWARP_BRANCH)\" -DPSWARP_SOURCE=\"$(PSWARP_SOURCE)\"24 pswarp_CPPFLAGS = $(PSLIB_CFLAGS) $(PSMODULE_CFLAGS) $(PPSTATS_CFLAGS) $(PSPHOT_CFLAGS) $(PSWARP_CFLAGS) 9 25 pswarp_LDFLAGS = $(PSLIB_LIBS) $(PSMODULE_LIBS) $(PPSTATS_LIBS) $(PSPHOT_LIBS) $(PSWARP_LIBS) 10 26 -
trunk/pswarp/src/pswarpVersion.c
r23595 r23806 20 20 #include <ppStats.h> 21 21 22 psString pswarpVersion(void) 23 { 22 #include "pswarp.h" 23 #include "pswarpVersionDefinitions.h" 24 24 25 #ifndef PSWARP_VERSION 25 26 #error "PSWARP_VERSION is not set" … … 28 29 #error "PSWARP_BRANCH is not set" 29 30 #endif 30 return psStringCopy(PSWARP_BRANCH "@" PSWARP_VERSION); 31 #ifndef PSWARP_SOURCE 32 #error "PSWARP_SOURCE is not set" 33 #endif 34 35 psString pswarpVersion(void) 36 { 37 char *value = NULL; 38 psStringAppend(&value, "%s@%s", PSWARP_BRANCH, PSWARP_VERSION); 39 return value; 31 40 } 32 41 33 42 psString pswarpSource(void) 34 43 { 35 #ifndef PSWARP_SOURCE36 #error "PSWARP_SOURCE is not set"37 #endif38 44 return psStringCopy(PSWARP_SOURCE); 39 45 }
Note:
See TracChangeset
for help on using the changeset viewer.
