]> granicus.if.org Git - postgis/commitdiff
Added RCSID string in usage output
authorSandro Santilli <strk@keybit.net>
Sat, 6 Mar 2004 17:43:06 +0000 (17:43 +0000)
committerSandro Santilli <strk@keybit.net>
Sat, 6 Mar 2004 17:43:06 +0000 (17:43 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@475 b70326c6-7e19-0410-871a-916f4a2858ee

loader/pgsql2shp.c
loader/shp2pgsql.c

index 1802c7cfec8848a20e45bc436595ff71ccf157ea..4dd0f10ddedaebfbefe6ee74c6160e94b7f58a67 100644 (file)
@@ -10,6 +10,9 @@
  * 
  **********************************************************************
  * $Log$
+ * Revision 1.43  2004/03/06 17:43:06  strk
+ * Added RCSID string in usage output
+ *
  * Revision 1.42  2004/02/09 18:49:23  strk
  * byte endiannes detected empirically
  *
@@ -92,6 +95,9 @@
  *
  **********************************************************************/
 
+static char rcsid[] =
+  "$Id$";
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -2097,6 +2103,7 @@ getGeometryType(char *schema, char *table, char *geo_col_name)
 void
 usage(status)
 {
+       printf("RCSID: %s\n", rcsid);
        printf("USAGE: pgsql2shp [<options>] <database> [<schema>.]<table>\n");
        printf("\n");
                printf("OPTIONS:\n");
index 79345807eb5f51c593c86ae96001033cf64cbb5e..e3194da87766783db6502d3eace73777bf9ac9b7 100644 (file)
@@ -12,6 +12,9 @@
  * 
  **********************************************************************
  * $Log$
+ * Revision 1.50  2004/03/06 17:43:06  strk
+ * Added RCSID string in usage output
+ *
  * Revision 1.49  2004/03/06 17:35:59  strk
  * Added rcsid string to usage output
  *
@@ -675,8 +678,7 @@ int main (int ARGC, char **ARGV){
         if (errflg==1) {
                printf("\n**ERROR** invalid option or command parameters\n");
                printf("\n");
-               printf("VERSION: %s", rcsid);
-               printf("\n");
+               printf("RCSID: %s\n", rcsid);
                printf("USAGE: shp2pgsql [<options>] <shapefile> [<schema>.]<table>\n");
                printf("\n");
                printf("OPTIONS:\n");