-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpks
executable file
·32 lines (27 loc) · 825 Bytes
/
pks
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
#!/bin/bash
# SPDX-License-Identifier: Apache-2.0
# Copyright 2019 Gliim LLC.
# Licensed under Apache License v2. See LICENSE file.
# On the web http://golf-lang.github.io/ - this file is part of Gliim framework.
#./pks [git-pwd]
# git-pwd is to run it non-interactively
#
#Do NOT run this script unless you are upstream developer! Internal use only.
#
#get the part that deals with signing of packages,changelog and version for the
#official Gliim release.
#
set -eE -o functrace
trap 'echo "Error: status $?, $(caller), line ${LINENO}"' ERR
if [ ! -d "$(pwd)/rv" ]; then
rm -rf rv
mkdir -p rv
cd rv
if [ "$1" != "" ]; then
git clone https://golf:$1@bitbucket.org/golf/private_golf.git .
else
git clone https://golf@bitbucket.org/golf/private_golf.git .
fi
cd ..
fi
rv/pks