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/hgPal/hgPal.c src/hg/hgPal/hgPal.c
index 178a56b..6cba6db 100644
--- src/hg/hgPal/hgPal.c
+++ src/hg/hgPal/hgPal.c
@@ -1,62 +1,65 @@
 /* hgPal - URL entry point to library pal routines */
+
+/* Copyright (C) 2013 The Regents of the University of California 
+ * See README in this or parent directory for licensing information. */
 #include "common.h"
 #include "cart.h"
 #include "cheapcgi.h"
 #include "web.h"
 #include "hdb.h"
 #include "hui.h"
 #include "pal.h"
 
 
 char *excludeVars[] = {"Submit", "submit", NULL,};
 
 void addOurButtons()
 {
 cgiMakeButton("Submit", "Submit");
 }
 
 void doMiddle(struct cart *cart)
 /* Set up globals and make web page */
 {
 char *track = cartString(cart, "g");
 char *chrom = cartOptionalString(cart, "c");
 char *item = cartOptionalString(cart, "i");
 int start = cartInt(cart, "l");
 int end = cartInt(cart, "r");
 char *database;
 char *genome;
 
 getDbAndGenome(cart, &database, &genome, NULL);
 struct sqlConnection *conn = hAllocConn(database);
 cartWebStart(cart, database, "Protein Alignments for %s %s",track,item);
 
 /* output the option selection dialog */
 palOptions(cart, conn, addOurButtons, NULL);
 
 printf("For information about output data format see the "
   "<A HREF=\"../goldenPath/help/hgTablesHelp.html#FASTA\">User's Guide</A><BR>");
 
 struct bed *bed;
 AllocVar(bed);
 bed->name = item;
 bed->chromStart = start;
 bed->chromEnd = end;
 bed->chrom = chrom;
 
 printf("<pre>");
 /* output the alignments */
 if (palOutPredsInBeds(conn, cart, bed, track) == 0)
     printf("<B>No coding region in gene '%s'</B><BR>",item);
 
 cartHtmlEnd();
 }
 
 int main(int argc, char *argv[])
 /* Process command line. */
 {
 long enteredMainTime = clock1000();
 cgiSpoof(&argc, argv);
 cartEmptyShell(doMiddle, hUserCookie(), excludeVars, NULL);
 cgiExitTime("hgPal", enteredMainTime);
 return 0;
 }