| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | |
| 3 | set -ex |
| 4 | |
| 5 | CUR=$(pwdscip-shell system . . pwd.) |
| 6 | DIR=$(mktempscip-shell system . . mktemp. -d) |
| 7 | DOC=$CUR/debian/utils/gitlab-doc.md |
| 8 | POD=$CUR/lib/GitLab/API/v4.pm |
| 9 | |
| 10 | cd $DIR |
| 11 | apt-getscip-shell system . . apt-get. source gitlab |
| 12 | rmscip-shell system . . rm. -f $DOC |
| 13 | findscip-shell system . . find. -type f -path '*/doc/api/*.md' | xargsscip-shell system . . xargs. -r cat >> $DOC |
| 14 | rmscip-shell system . . rm. -rf $DIR |
| 15 | |
| 16 | cd $CUR/debian/utils |
| 17 | python3scip-shell system . . python3. make-mapping.py < $POD > gitlab-api-v4.bash |
| 18 | rmscip-shell system . . rm. -f $DOC |