mirror of
https://github.com/safing/portmaster
synced 2025-04-25 13:29:10 +00:00
22 lines
451 B
Bash
Executable file
22 lines
451 B
Bash
Executable file
#!/bin/sh
|
|
|
|
DEP_FILE="Gopkg.toml"
|
|
|
|
# remove ignored internal deps
|
|
sed -i '/ignored = \["github.com\/safing\//d' $DEP_FILE
|
|
|
|
# portbase
|
|
PORTBASE_BRANCH="develop"
|
|
git branch | grep "* master" >/dev/null
|
|
if [ $? -eq 0 ]; then
|
|
PORTBASE_BRANCH="master"
|
|
fi
|
|
echo "
|
|
[[constraint]]
|
|
name = \"github.com/safing/portbase\"
|
|
branch = \"${PORTBASE_BRANCH}\"
|
|
|
|
[[constraint]]
|
|
name = \"github.com/safing/spn\"
|
|
branch = \"${PORTBASE_BRANCH}\"
|
|
" >> $DEP_FILE
|