Fossil SCM

Improved formatting and additional information output for "fossil version --verbose".

drh 2013-06-18 23:12 trunk
Commit 1b0e8cf9c0185d14acf6ae249dc9ff46fdb47249
1 file changed +8 -11
+8 -11
--- src/main.c
+++ src/main.c
@@ -786,33 +786,30 @@
786786
MANIFEST_VERSION " " MANIFEST_DATE " UTC\n");
787787
if(!find_option("verbose","v",0)){
788788
return;
789789
}else{
790790
int count = 0;
791
- fossil_print("\nCompiled using \"%s\" with\nSQLite %s [%s],\nzlib %s, "
792
- "and the following optional features enabled:\n\n",
793
- COMPILER_NAME, SQLITE_VERSION, SQLITE_SOURCE_ID,
794
- ZLIB_VERSION);
791
+ fossil_print("Compiled on %s %s using %s (%d-bit)\n",
792
+ __DATE__, __TIME__, COMPILER_NAME, sizeof(void*)*8);
793
+ fossil_print("SQLite %s [%s],\n", SQLITE_VERSION, SQLITE_SOURCE_ID);
794
+ fossil_print("zlib %s\n", ZLIB_VERSION);
795795
#if defined(FOSSIL_ENABLE_SSL)
796796
++count;
797
- fossil_print("\tSSL (%s)\n", OPENSSL_VERSION_TEXT);
797
+ fossil_print("SSL (%s)\n", OPENSSL_VERSION_TEXT);
798798
#endif
799799
#if defined(FOSSIL_ENABLE_TCL)
800800
++count;
801
- fossil_print("\tTCL (Tcl %s)\n", TCL_PATCH_LEVEL);
801
+ fossil_print("TCL (Tcl %s)\n", TCL_PATCH_LEVEL);
802802
#endif
803803
#if defined(FOSSIL_ENABLE_TCL_STUBS)
804804
++count;
805
- fossil_print("\tTCL_STUBS\n");
805
+ fossil_print("TCL_STUBS\n");
806806
#endif
807807
#if defined(FOSSIL_ENABLE_JSON)
808808
++count;
809
- fossil_print("\tJSON (API %s)\n", FOSSIL_JSON_API_VERSION);
809
+ fossil_print("JSON (API %s)\n", FOSSIL_JSON_API_VERSION);
810810
#endif
811
- if( !count ){
812
- fossil_print("\tNo optional features were enabled.\n");
813
- }
814811
}
815812
}
816813
817814
818815
/*
819816
--- src/main.c
+++ src/main.c
@@ -786,33 +786,30 @@
786 MANIFEST_VERSION " " MANIFEST_DATE " UTC\n");
787 if(!find_option("verbose","v",0)){
788 return;
789 }else{
790 int count = 0;
791 fossil_print("\nCompiled using \"%s\" with\nSQLite %s [%s],\nzlib %s, "
792 "and the following optional features enabled:\n\n",
793 COMPILER_NAME, SQLITE_VERSION, SQLITE_SOURCE_ID,
794 ZLIB_VERSION);
795 #if defined(FOSSIL_ENABLE_SSL)
796 ++count;
797 fossil_print("\tSSL (%s)\n", OPENSSL_VERSION_TEXT);
798 #endif
799 #if defined(FOSSIL_ENABLE_TCL)
800 ++count;
801 fossil_print("\tTCL (Tcl %s)\n", TCL_PATCH_LEVEL);
802 #endif
803 #if defined(FOSSIL_ENABLE_TCL_STUBS)
804 ++count;
805 fossil_print("\tTCL_STUBS\n");
806 #endif
807 #if defined(FOSSIL_ENABLE_JSON)
808 ++count;
809 fossil_print("\tJSON (API %s)\n", FOSSIL_JSON_API_VERSION);
810 #endif
811 if( !count ){
812 fossil_print("\tNo optional features were enabled.\n");
813 }
814 }
815 }
816
817
818 /*
819
--- src/main.c
+++ src/main.c
@@ -786,33 +786,30 @@
786 MANIFEST_VERSION " " MANIFEST_DATE " UTC\n");
787 if(!find_option("verbose","v",0)){
788 return;
789 }else{
790 int count = 0;
791 fossil_print("Compiled on %s %s using %s (%d-bit)\n",
792 __DATE__, __TIME__, COMPILER_NAME, sizeof(void*)*8);
793 fossil_print("SQLite %s [%s],\n", SQLITE_VERSION, SQLITE_SOURCE_ID);
794 fossil_print("zlib %s\n", ZLIB_VERSION);
795 #if defined(FOSSIL_ENABLE_SSL)
796 ++count;
797 fossil_print("SSL (%s)\n", OPENSSL_VERSION_TEXT);
798 #endif
799 #if defined(FOSSIL_ENABLE_TCL)
800 ++count;
801 fossil_print("TCL (Tcl %s)\n", TCL_PATCH_LEVEL);
802 #endif
803 #if defined(FOSSIL_ENABLE_TCL_STUBS)
804 ++count;
805 fossil_print("TCL_STUBS\n");
806 #endif
807 #if defined(FOSSIL_ENABLE_JSON)
808 ++count;
809 fossil_print("JSON (API %s)\n", FOSSIL_JSON_API_VERSION);
810 #endif
 
 
 
811 }
812 }
813
814
815 /*
816

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button