[Libpst-commits] r43 - trunk
Joseph Nahmias
jello at costa.debian.org
Mon Jan 16 18:02:11 UTC 2006
Author: jello
Date: 2006-01-16 18:02:06 +0000 (Mon, 16 Jan 2006)
New Revision: 43
Modified:
trunk/Makefile
trunk/libpst.h
trunk/readpst.c
Log:
teach readpst about VERSION file
Modified: trunk/Makefile
===================================================================
--- trunk/Makefile 2006-01-13 02:35:49 UTC (rev 42)
+++ trunk/Makefile 2006-01-16 18:02:06 UTC (rev 43)
@@ -12,6 +12,7 @@
INSTALL_SCRIPT := $(INSTALL) -p -o root -g root -m 0755
VERSION = $(shell cat VERSION)
+CFLAGS += -DVERSION=\"$(VERSION)\"
DOCS := AUTHORS ChangeLog CREDITS FILE-FORMAT FILE-FORMAT.html INSTALL \
LICENSE TODO VERSION
Modified: trunk/libpst.h
===================================================================
--- trunk/libpst.h 2006-01-13 02:35:49 UTC (rev 42)
+++ trunk/libpst.h 2006-01-16 18:02:06 UTC (rev 43)
@@ -70,9 +70,6 @@
#define u_int16_t unsigned short int
#endif // _MSC_VER
-
-#define PST_VERSION "0.5.1"
-
#define PST_TYPE_NOTE 1
#define PST_TYPE_APPOINTMENT 8
#define PST_TYPE_CONTACT 9
Modified: trunk/readpst.c
===================================================================
--- trunk/readpst.c 2006-01-13 02:35:49 UTC (rev 42)
+++ trunk/readpst.c 2006-01-16 18:02:06 UTC (rev 43)
@@ -43,7 +43,6 @@
#define OUTPUT_KMAIL_DIR_TEMPLATE ".%s.directory"
#define KMAIL_INDEX ".%s.index"
-#define VERSION "0.5.1"
// max size of the c_time char*. It will store the date of the email
#define C_TIME_SIZE 500
#define PERM_DIRS 0777
@@ -1146,7 +1145,7 @@
// int version() {{{1
int version() {
DEBUG_ENT("version");
- printf("ReadPST v%s implementing LibPST v%s\n", VERSION, PST_VERSION);
+ printf("ReadPST v%s.\n", VERSION);
#if BYTE_ORDER == BIG_ENDIAN
printf("Big Endian implementation being used.\n");
#elif BYTE_ORDER == LITTLE_ENDIAN
@@ -1505,5 +1504,5 @@
}
// }}}1
-// vim:sw=4 ts=4:
+// vim:sw=2 ts=2 et:
// vim600: set foldlevel=0 foldmethod=marker:
More information about the Libpst-commits
mailing list