-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sh
37 lines (30 loc) · 828 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash -
#===============================================================================
#
# FILE: build.sh
#
# USAGE: ./build.sh
#
# DESCRIPTION:
#
# OPTIONS: ---
# REQUIREMENTS: ---
# BUGS: ---
# NOTES: ---
# AUTHOR: Stan P. (@vagner), [email protected]
# ORGANIZATION:
# CREATED: 24.03.2015 11:29
# REVISION: ---
#===============================================================================
set -o nounset # Treat unset variables as an error
pushd lib/libgit2-0.22.0
cmake -DCMAKE_INSTALL_PREFIX=/usr .
make
make install
export GOPATH=/tmp/gobuild
mkdir -p ${GOPATH}/src ${GOPATH}/pkg ${GOPATH}/bin /usr/share/go-gitlab
popd
go get
go build
cp -rf templates /usr/share/go-gitlab
cp -rf githooks.conf /etc/