File: prepare_doxygen.sh

package info (click to toggle)
simdutf 7.7.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,244 kB
  • sloc: cpp: 60,074; ansic: 14,226; python: 3,364; sh: 321; makefile: 12
file content (21 lines) | stat: -rwxr-xr-x 473 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
set -e

PACKAGE_URL="https://github.com/jothepro/doxygen-awesome-css.git"
PACKAGE_VERSION="v2.1.0"

BASE_DIR=$(pwd)
THEME_DIR="$BASE_DIR/theme"
WORKSPACE=$(mktemp -d 2> /dev/null || mktemp -d -t 'tmp')
cleanup () {
  EXIT_CODE=$?
  [ -d "$WORKSPACE" ] && rm -rf "$WORKSPACE"
  exit $EXIT_CODE
}

trap cleanup INT TERM EXIT

cd "$WORKSPACE"
git clone --depth=1 --branch "$PACKAGE_VERSION" "$PACKAGE_URL" theme
rm -rf "$THEME_DIR"
mv "$WORKSPACE/theme" "$BASE_DIR"