File: update-shell-completions

package info (click to toggle)
libgitlab-api-v4-perl 0.27-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,500 kB
  • sloc: perl: 5,960; sh: 838; python: 63; makefile: 12
file content (18 lines) | stat: -rwxr-xr-x 312 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -ex

CUR=$(pwd)
DIR=$(mktemp -d)
DOC=$CUR/debian/utils/gitlab-doc.md
POD=$CUR/lib/GitLab/API/v4.pm

cd $DIR
apt-get source gitlab
rm -f $DOC
find -type f -path '*/doc/api/*.md' | xargs -r cat >> $DOC
rm -rf $DIR

cd $CUR/debian/utils
python3 make-mapping.py < $POD > gitlab-api-v4.bash
rm -f $DOC