| 1 | #! /bin/sh |
| 2 | set -e |
| 3 | PROG=`mktemp` |
| 4 | cat >$PROG <<EOF |
| 5 | #!/bin/sh |
| 6 | case \$1 in |
| 7 | --help) echo "Usage: gap [OPTIONS] [FILES]"; |
| 8 | (cd ../..; ./gap -l . -h 2>&1) | tail -n +3;; |
| 9 | --version) echo -n "GAP - Groups, Algorithms and Programming "; |
| 10 | (cd ../..; ./gap -l . -h 2>&1) | grep Version | sed -e "s/^.*Version/Version/";; |
| 11 | esac |
| 12 | EOF |
| 13 | chmod a+x $PROG |
| 14 | EXTRA=`mktemp` |
| 15 | cat >$EXTRA <<"EOF" |
| 16 | [description] |
| 17 | GAP is a system for computational discrete algebra, with particular emphasis |
| 18 | on Computational Group Theory. GAP provides a programming language, a library |
| 19 | of thousands of functions implementing algebraic algorithms written in the GAP |
| 20 | language as well as large data libraries of algebraic objects. GAP is used in |
| 21 | research and teaching for studying groups and their representations, rings, |
| 22 | vector spaces, algebras, combinatorial structures, and more. |
| 23 | [see also] |
| 24 | .I gac(1) |
| 25 | .I update-gap-workspace(1) |
| 26 | .P |
| 27 | You can read the complete manual in /usr/share/gap/doc or you can use the online help system. Type ?help inside GAP to access it. |
| 28 | Type |
| 29 | .P |
| 30 | ?Reference: options!under UNIX |
| 31 | .P |
| 32 | to access the full documentation of options. |
| 33 | .P |
| 34 | [authors] |
| 35 | The GAP Group <http://www.gap-system.org> |
| 36 | [copyright] |
| 37 | Copyright (1988--2025) by its authors. |
| 38 | |
| 39 | GAP is free software; you can redistribute it and/or modify it under |
| 40 | the terms of the GNU General Public License as published by the Free |
| 41 | Software Foundation; either version 2 of the License, or (at your option) |
| 42 | any later version. |
| 43 | EOF |
| 44 | |
| 45 | help2man --source="The GAP team" -N $PROG --include=$EXTRA -n "Groups, Algorithms and Programming" |
| 46 | rm $PROG $EXTRA |