[med-svn] [htslib] 04/13: Happy New Year

Andreas Tille tille at debian.org
Sat Jan 30 13:23:56 UTC 2016


This is an automated email from the git hooks/post-receive script.

tille pushed a commit to branch master
in repository htslib.

commit 70bfd53042902d53c7ef2358aeb85dc80c4bc63a
Author: John Marshall <jm18 at sanger.ac.uk>
Date:   Sun Jan 3 09:38:57 2016 +1300

    Happy New Year
    
    Add --version options to bgzip and tabix.
---
 bgzip.c   | 8 +++++++-
 htsfile.c | 4 ++--
 tabix.c   | 8 +++++++-
 3 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/bgzip.c b/bgzip.c
index f90f1fc..3df8cc0 100644
--- a/bgzip.c
+++ b/bgzip.c
@@ -1,7 +1,7 @@
 /* bgzip.c -- Block compression/decompression utility.
 
    Copyright (C) 2008, 2009 Broad Institute / Massachusetts Institute of Technology
-   Copyright (C) 2010, 2013-2015 Genome Research Ltd.
+   Copyright (C) 2010, 2013-2016 Genome Research Ltd.
 
    Permission is hereby granted, free of charge, to any person obtaining a copy
    of this software and associated documentation files (the "Software"), to deal
@@ -103,6 +103,7 @@ int main(int argc, char **argv)
         {"reindex", no_argument, NULL, 'r'},
         {"size", required_argument, NULL, 's'},
         {"threads", required_argument, NULL, '@'},
+        {"version", no_argument, NULL, 1},
         {NULL, 0, NULL, 0}
     };
 
@@ -118,6 +119,11 @@ int main(int argc, char **argv)
         case 'I': index_fname = optarg; break;
         case 'r': reindex = 1; compress = 0; break;
         case '@': threads = atoi(optarg); break;
+        case 1:
+            printf(
+"bgzip (htslib) %s\n"
+"Copyright (C) 2016 Genome Research Ltd.\n", hts_version());
+            return EXIT_SUCCESS;
         case 'h':
         case '?': return bgzip_main_usage();
         }
diff --git a/htsfile.c b/htsfile.c
index bfd0a74..3fa0678 100644
--- a/htsfile.c
+++ b/htsfile.c
@@ -1,6 +1,6 @@
 /*  htsfile.c -- file identifier and minimal viewer.
 
-    Copyright (C) 2014-2015 Genome Research Ltd.
+    Copyright (C) 2014-2016 Genome Research Ltd.
 
     Author: John Marshall <jm18 at sanger.ac.uk>
 
@@ -179,7 +179,7 @@ int main(int argc, char **argv)
         case 1:
             printf(
 "htsfile (htslib) %s\n"
-"Copyright (C) 2015 Genome Research Ltd.\n",
+"Copyright (C) 2016 Genome Research Ltd.\n",
                    hts_version());
             exit(EXIT_SUCCESS);
             break;
diff --git a/tabix.c b/tabix.c
index 63bf458..8bd65e7 100644
--- a/tabix.c
+++ b/tabix.c
@@ -1,7 +1,7 @@
 /*  tabix.c -- Generic indexer for TAB-delimited genome position files.
 
     Copyright (C) 2009-2011 Broad Institute.
-    Copyright (C) 2010-2012, 2014, 2015 Genome Research Ltd.
+    Copyright (C) 2010-2012, 2014-2016 Genome Research Ltd.
 
     Author: Heng Li <lh3 at sanger.ac.uk>
 
@@ -390,6 +390,7 @@ int main(int argc, char *argv[])
         {"skip-lines", required_argument, NULL, 'S'},
         {"list-chroms", no_argument, NULL, 'l'},
         {"reheader", required_argument, NULL, 'r'},
+        {"version", no_argument, NULL, 1},
         {NULL, 0, NULL, 0}
     };
 
@@ -437,6 +438,11 @@ int main(int argc, char *argv[])
                 conf.line_skip = strtol(optarg,&tmp,10);
                 if ( *tmp ) error("Could not parse argument: -S %s\n", optarg);
                 break;
+            case 1:
+                printf(
+"tabix (htslib) %s\n"
+"Copyright (C) 2016 Genome Research Ltd.\n", hts_version());
+                return EXIT_SUCCESS;
             default: return usage();
         }
     }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/htslib.git



More information about the debian-med-commit mailing list