e70152e44cc66cc599ff6b699eb8adc07f3e656a
kent
  Sat May 24 21:09:34 2014 -0700
Adding Copyright NNNN Regents of the University of California to all files I believe with reasonable certainty were developed under UCSC employ or as part of Genome Browser copyright assignment.
diff --git src/hg/hgsqlTableDate/hgsqlTableDate.c src/hg/hgsqlTableDate/hgsqlTableDate.c
index 0fd4f37..568e9cc 100644
--- src/hg/hgsqlTableDate/hgsqlTableDate.c
+++ src/hg/hgsqlTableDate/hgsqlTableDate.c
@@ -1,49 +1,52 @@
 /* hgsqlTableDate - touch file with date from table. */
+
+/* Copyright (C) 2011 The Regents of the University of California 
+ * See README in this or parent directory for licensing information. */
 #include "common.h"
 #include "linefile.h"
 #include "hash.h"
 #include "options.h"
 #include "jksql.h"
 #include "utime.h"
 #include "hdb.h"
 
 
 void usage()
 /* Explain usage and exit. */
 {
 errAbort(
   "hgsqlTableDate - touch file with date from table\n"
   "usage:\n"
   "   hgsqlTableDate database table file\n"
   "options:\n"
   );
 }
 
 static struct optionSpec options[] = {
    {NULL, 0},
 };
 
 void hgsqlTableDate(char *database, char *table, char *file)
 /* hgsqlTableDate - touch file with date from table. */
 {
 struct sqlConnection *conn = hAllocConn(database);
 time_t tableTime = sqlTableUpdateTime(conn, table);
 struct utimbuf buf;
 
 buf.actime = tableTime;
 buf.modtime = tableTime;
 
 if (utime(file, &buf) < 0)
 
     errAbort("utime failed. %s:%s\n",file, strerror(errno));
 }
 
 int main(int argc, char *argv[])
 /* Process command line. */
 {
 optionInit(&argc, argv, options);
 if (argc != 4)
     usage();
 hgsqlTableDate(argv[1],argv[2],argv[3]);
 return 0;
 }