Skip to content
Commits on Source (2)
#!/bin/sh
MANDIR=debian/mans
mkdir -p $MANDIR
VERSION=`dpkg-parsechangelog | awk '/^Version:/ {print $2}' | sed -e 's/^[0-9]*://' -e 's/-.*//' -e 's/[+~]dfsg$//'`
NAME=`grep "^Description:" debian/control | sed 's/^Description: *//' | head -n1`
PROGNAME=`grep "^Package:" debian/control | sed 's/^Package: *//' | head -n1`
AUTHOR=".SH AUTHOR\nThis manpage was written by $DEBFULLNAME for the Debian distribution and
can be used for any other usage of the program.
"
progname=megahit
help2man --no-info --no-discard-stderr --help-option="-h" \
--name="$NAME" \
--version-string="$VERSION" ${progname} > $MANDIR/${progname}.1
echo $AUTHOR >> $MANDIR/${progname}.1
progname=megahit_core
help2man --no-info --no-discard-stderr --help-option="-h" \
--name="$NAME" \
--version-string="$VERSION" ${progname} > $MANDIR/${progname}.1
echo $AUTHOR >> $MANDIR/${progname}.1
progname=megahit_core_popcnt
help2man --no-info --no-discard-stderr --help-option="-h" \
--name="$NAME" \
--version-string="$VERSION" ${progname} > $MANDIR/${progname}.1
echo $AUTHOR >> $MANDIR/${progname}.1
progname=megahit_core_no_hw_accel
help2man --no-info --no-discard-stderr --help-option="-h" \
--name="$NAME" \
--version-string="$VERSION" ${progname} > $MANDIR/${progname}.1
echo $AUTHOR >> $MANDIR/${progname}.1
progname=megahit_toolkit
help2man --no-info --no-discard-stderr --help-option="-h" \
--name="$NAME" \
--version-string="$VERSION" ${progname} > $MANDIR/${progname}.1
echo $AUTHOR >> $MANDIR/${progname}.1
echo "$MANDIR/*.1" > debian/manpages
cat <<EOT
Please enhance the help2man output.
The following web page might be helpful in doing so:
http://liw.fi/manpages/
EOT
Index: megahit/src/sequence/kmer.h
===================================================================
--- megahit.orig/src/sequence/kmer.h 2019-10-11 08:23:05.000000000 +0100
+++ megahit/src/sequence/kmer.h 2019-10-11 08:25:54.274610194 +0100
@@ -113,7 +113,9 @@
}
for (unsigned i = 0; i + i < used_words; ++i) {
- std::swap(data_[i], data_[used_words - 1 - i]);
+ auto a = data_[i];
+ auto b = data_[used_words - 1 - i];
+ std::swap(a, b);
}
if ((k % kCharsPerWord) != 0) {
fix_src_packed_field.patch