File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -75,12 +75,24 @@ int main(int argc, char *argv[]) {
7575 fprintf (stderr , "The GRAPH_DIR environment variable must be set to the location of a current set of graph files.\n" );
7676 exit (1 );
7777 }
78+ d = opendir (graph_dir );
79+ if (d == NULL ) {
80+ fprintf (stderr , "Could not open graph file directory %s\n" , graph_dir );
81+ usage (argv [0 ]);
82+ }
83+ closedir (d );
7884
7985 char * hwy_data = getenv ("HIGHWAY_DATA" );
8086 if (hwy_data == NULL ) {
8187 fprintf (stderr , "The HIGHWAY_DATA environment variable must be set to the location of the TravelMapping/HighwayData repository.\n" );
8288 exit (1 );
8389 }
90+ d = opendir (hwy_data );
91+ if (d == NULL ) {
92+ fprintf (stderr , "Could not open highway data directory %s\n" , hwy_data );
93+ usage (argv [0 ]);
94+ }
95+ closedir (d );
8496
8597 /* create the .sql file */
8698 char sqlfilename [4096 ];
@@ -91,7 +103,15 @@ int main(int argc, char *argv[]) {
91103 perror (NULL );
92104 exit (1 );
93105 }
94-
106+
107+ printf ("New graph archive set %s (%s) datestamp %s\n" , archive_name ,
108+ description , datestamp );
109+ printf ("Creating graph archive SQL file %s\n" , sqlfilename );
110+ printf ("Graphs created by TM siteupdate are in %s\n" , graph_dir );
111+ printf ("Graphs based on HighwayData rev %s in %s\n" , hwy_vers , hwy_data );
112+ printf ("and UserData rev %s, DataProcessing rev %s\n" , user_vers ,
113+ dataproc_vers );
114+
95115 fclose (sqlfp );
96116
97117 return 0 ;
You can’t perform that action at this time.
0 commit comments