Changeset 23793
- Timestamp:
- Apr 9, 2009, 10:16:54 PM (17 years ago)
- Location:
- trunk/psLib
- Files:
-
- 1 added
- 6 edited
-
autogen.sh (modified) (1 diff)
-
configure.ac (modified) (1 diff)
-
m4/ipp_stdopts.m4 (modified) (1 diff)
-
src/sys (modified) (1 prop)
-
src/sys/Makefile.am (modified) (2 diffs)
-
src/sys/psConfigure.c (modified) (3 diffs)
-
src/sys/psVersionDefinitions.h.in (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/autogen.sh
r19244 r23793 19 19 fi 20 20 21 ACLOCAL="aclocal $ACLOCAL_FLAGS"21 ACLOCAL="aclocal -I `pwd`/m4 $ACLOCAL_FLAGS" 22 22 AUTOHEADER=autoheader 23 23 AUTOMAKE=automake -
trunk/psLib/configure.ac
r23787 r23793 341 341 CPPFLAGS=${TMP_CPPFLAGS} 342 342 343 IPP_VERSION(PSLIB) 344 AC_SUBST(PSLIB_VERSION,[$PSLIB_VERSION]) 345 AC_SUBST(PSLIB_BRANCH,[$PSLIB_BRANCH]) 346 AC_SUBST(PSLIB_SOURCE,[$PSLIB_SOURCE]) 343 IPP_VERSION 347 344 348 345 dnl ------- enable -Werror after all of the probes have run --------- -
trunk/psLib/m4/ipp_stdopts.m4
r23787 r23793 50 50 ) 51 51 52 [$1]_VERSION="UNKNOWN"53 [$1]_BRANCH="UNKNOWN"54 [$1]_SOURCE="UNKNOWN"55 52 AS_IF([test "x$enable_version" = xtrue], 56 53 [AC_PATH_PROG([SVNVERSION], [svnversion]) 57 AC_PATH_PROG([SVN], [svn]) 58 AC_PROG_SED 59 AS_IF([test "x$SVNVERSION" != x], [$1]_VERSION=`$SVNVERSION`) 60 AS_IF([test "x$SVN" != x], 61 [[$1]_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 }'` 62 [$1]_SOURCE=`$SVN info | $SED -n -e 's/Repository UUID: // p'`]) 63 ] 54 AC_PATH_PROG([SVN], [svn])] 64 55 ) 65 66 dnl AC_SUBST([$1]_VERSION,[[$1]_VERSION]) 67 dnl AC_SUBST([$1]_BRANCH,[[$1]_BRANCH]) 68 dnl AC_SUBST([$1]_SOURCE,[[$1]_SOURCE]) 56 AC_PROG_SED 57 AM_CONDITIONAL([HAVE_SVNVERSION], [test "x$SVNVERSION" != x]) 58 AM_CONDITIONAL([HAVE_SVN], [test "x$SVN" != x]) 69 59 ]) -
trunk/psLib/src/sys
- Property svn:ignore
-
old new 11 11 *.bbg 12 12 *.da 13 psVersionDefinitions.h
-
- Property svn:ignore
-
trunk/psLib/src/sys/Makefile.am
r23787 r23793 3 3 noinst_LTLIBRARIES = libpslibsys.la 4 4 5 if HAVE_SVNVERSION 6 PSLIB_VERSION=`$(SVNVERSION) ../..` 7 else 8 PSLIB_VERSION="UNKNOWN" 9 endif 10 11 if HAVE_SVN 12 PSLIB_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 }'` 13 PSLIB_SOURCE=`$(SVN) info | $(SED) -n -e 's/Repository UUID: // p'` 14 else 15 PSLIB_BRANCH="UNKNOWN" 16 PSLIB_SOURCE="UNKNOWN" 17 endif 18 5 19 # Force recompilation of psConfigure.c, since it gets the version information 6 psConfigure.c: FORCE 7 touch psConfigure.c 20 psConfigure.c: psVersionDefinitions.h 21 psVersionDefinitions.h: psVersionDefinitions.h.in FORCE 22 -$(RM) psVersionDefinitions.h 23 $(SED) -e "s|@PSLIB_VERSION@|\"$(PSLIB_VERSION)\"|" -e "s|@PSLIB_BRANCH@|\"$(PSLIB_BRANCH)\"|" -e "s|@PSLIB_SOURCE@|\"$(PSLIB_SOURCE)\"|" psVersionDefinitions.h.in > psVersionDefinitions.h 8 24 FORCE: ; 9 25 10 libpslibsys_la_CPPFLAGS = $(SRCINC) $(PSLIB_CFLAGS) $(CFITSIO_CFLAGS) -DPSLIB_VERSION=$(PSLIB_VERSION) -DPSLIB_BRANCH=$(PSLIB_BRANCH) -DPSLIB_SOURCE=$(PSLIB_SOURCE)26 libpslibsys_la_CPPFLAGS = $(SRCINC) $(PSLIB_CFLAGS) $(CFITSIO_CFLAGS) 11 27 libpslibsys_la_SOURCES = \ 12 28 psAbort.c \ … … 24 40 strcasestr.c 25 41 26 EXTRA_DIST = sys.i psErrorCodes.c.in psErrorCodes.h.in 42 EXTRA_DIST = sys.i psErrorCodes.c.in psErrorCodes.h.in psVersion.h 27 43 28 BUILT_SOURCES = psErrorCodes.c 44 BUILT_SOURCES = psErrorCodes.c psVersion.h 29 45 30 46 psErrorCodes.c: ../psErrorCodes_$(PS_LANG).dat psErrorCodes.c.in psErrorCodes.h -
trunk/psLib/src/sys/psConfigure.c
r23229 r23793 44 44 #include "psMemory.h" 45 45 46 #include "psVersionDefinitions.h" 47 46 48 static char *memCheckName = NULL; // Filename to which to write results of mem check 47 49 static FILE *memCheckFile = NULL; // File to which to write results of mem check … … 57 59 #endif 58 60 59 #define xstr(s) str(s)60 #define str(s) #s61 62 61 psString psLibVersion(void) 63 62 { 64 63 char *value = NULL; 65 psStringAppend(&value, "%s@%s", xstr(PSLIB_BRANCH), xstr(PSLIB_VERSION));64 psStringAppend(&value, "%s@%s", PSLIB_BRANCH, PSLIB_VERSION); 66 65 return value; 67 66 } … … 69 68 psString psLibSource(void) 70 69 { 71 return psStringCopy( xstr(PSLIB_SOURCE));70 return psStringCopy(PSLIB_SOURCE); 72 71 } 73 72
Note:
See TracChangeset
for help on using the changeset viewer.
