File: setup.sh

package info (click to toggle)
adios2 2.11.0%2Bdfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 39,972 kB
  • sloc: ansic: 250,306; cpp: 189,875; yacc: 18,929; f90: 15,117; python: 8,047; perl: 7,126; sh: 3,049; lisp: 1,106; xml: 1,011; lex: 948; makefile: 598
file content (21 lines) | stat: -rwxr-xr-x 415 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
#!/usr/bin/env bash

function test_cmd {
  if ! $1 ;
  then
    echo "Error: $2";
    exit $3
  fi
}

cd "${BASH_SOURCE%/*}/../.."

test_cmd scripts/developer/git/setup-remotes \
  "Failed to setup upstream remotes " 2

test_cmd scripts/developer/git/setup-aliases \
  "Failed to setup git aliases" 2

test_cmd scripts/developer/git/setup-hooks \
  "Failed to setup git hooks" 1
git config hooks.clang-format false