changeset 15:ac98f448b6ab

patches from debian
author carl
date Sun, 19 Feb 2006 14:50:06 -0800
parents 3f2fedec798c
children c508ee15dfca
files package pst2ldif.cpp
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/package	Sun Feb 19 14:35:22 2006 -0800
+++ b/package	Sun Feb 19 14:50:06 2006 -0800
@@ -9,6 +9,7 @@
 chown --recursive carl:carl *
 
 if [ -f pst2ldif ]; then
+    rm -f pst2ldif.log my.log
     ./pst2ldif -b 'o=ams-cc.com, c=US' -c 'newPerson' $pst >ams.ldif
     ./readpstlog pst2ldif.log | less >my.log
     hexdump -C $pst >pst.dump
--- a/pst2ldif.cpp	Sun Feb 19 14:35:22 2006 -0800
+++ b/pst2ldif.cpp	Sun Feb 19 14:50:06 2006 -0800
@@ -400,8 +400,10 @@
 		exit(2);
 	}
 
-	DEBUG_INIT("pst2ldif.log");
-	DEBUG_REGISTER_CLOSE();
+	#ifdef DEBUG_ALL
+		DEBUG_INIT("pst2ldif.log");
+		DEBUG_REGISTER_CLOSE();
+	#endif
 	DEBUG_ENT("main");
 	RET_DERROR(pst_open(&pstfile, fname, "r"), 1, ("Error opening File\n"));
 	RET_DERROR(pst_load_index(&pstfile), 2, ("Index Error\n"));