1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
#!/bin/bash
# helper script to create first version of man pages
MANDIR=mans
VERSION=`dpkg-parsechangelog | awk '/^Version:/ {print $2}' | sed -e 's/^[0-9]*://' -e 's/-.*//' -e 's/[+~]dfsg$//'`
help2man -n "annotate VCF file, add filters or custom annotations" -N --help-option="-h" --no-discard-stderr --version-string="${VERSION}" vcf-annotate > ${MANDIR}/vcf-annotate.1
help2man -n "compare bgzipped and tabix indexed VCF files" -N --help-option="-h" --no-discard-stderr --version-string="${VERSION}" vcf-compare > ${MANDIR}/vcf-compare.1
help2man -n "concatenate VCF files" -N --help-option="-h" --no-discard-stderr --version-string="${VERSION}" vcf-concat > ${MANDIR}/vcf-concat.1
help2man -n "convert between VCF versions" -N --help-option="-h" --no-discard-stderr --version-string="${VERSION}" vcf-convert > ${MANDIR}/vcf-convert.1
help2man -n "create intersections, unions, complements on bgzipped and tabix indexed VCF or tab-delimited files" -N --help-option="-h" --no-discard-stderr --version-string="${VERSION}" vcf-isec > ${MANDIR}/vcf-isec.1
help2man -n "merge the bgzipped and tabix indexed VCF files" -N --help-option="-h" --no-discard-stderr --version-string="${VERSION}" vcf-merge > ${MANDIR}/vcf-merge.1
help2man -n "query VCF files" -N --help-option="-h" --no-discard-stderr --version-string="${VERSION}" vcf-query > ${MANDIR}/vcf-query.1
help2man -n "sort VCF file" -N --help-option="-h" --no-discard-stderr --version-string="${VERSION}" vcf-sort > ${MANDIR}/vcf-sort.1
help2man -n "statistic of VCF file" -N --help-option="-h" --no-discard-stderr --version-string="${VERSION}" vcf-stats > ${MANDIR}/vcf-stats.1
help2man -n "create subset of VCF file" -N --help-option="-h" --no-discard-stderr --version-string="${VERSION}" vcf-subset > ${MANDIR}/vcf-subset.1
help2man -n "convert to tabix" -N --help-option="-h" --no-discard-stderr --version-string="${VERSION}" vcf-to-tab > ${MANDIR}/vcf-to-tab.1
help2man -n "validate VCF file" -N --help-option="-h" --no-discard-stderr --version-string="${VERSION}" vcf-validator > ${MANDIR}/vcf-validator.1
help2man -n "fix newlines in VCF file" -N --help-option="-h" --no-discard-stderr --version-string="${VERSION}" vcf-fix-newlines > ${MANDIR}/vcf-fix-newlines.1
|