File: pre-commit

package info (click to toggle)
aegean 0.16.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 8,444 kB
  • sloc: ansic: 12,050; python: 465; sh: 315; makefile: 308; perl: 151
file content (15 lines) | stat: -rwxr-xr-x 277 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env bash

branch=`git branch | grep '*' | sed 's|* ||'`
if [ $branch == "gh-pages" ]; then
  exit 0
fi

perl data/scripts/build-docs.pl inc/core > docs/api.rst
if [ $? != 0 ]; then
  echo "[AEGeAn::pre-commit] error building docs"
  exit 1
fi

git add docs/api.rst