mirror of
https://github.com/passepartoutvpn/passepartout-apple.git
synced 2024-12-24 18:32:36 +00:00
2de5aad093
Get rid of the messy `bump*.sh` scripts variants with a single one with positional arguments (all optional): - -v: the new version number (default: current) - -b: the new build number (default: current + 1) - -s: the initial build for the CHANGELOG diff (default: latest tag) - -na: do not update the API (default: do update it) - -nl: do not update the CHANGELOG (default: present editor) - -d: dry run Fixes #948
16 lines
302 B
Bash
Executable File
16 lines
302 B
Bash
Executable File
#!/bin/bash
|
|
DESTINATION="Passepartout/Library/Sources/CommonAPI/API"
|
|
API_VERSION="v5"
|
|
|
|
mkdir tmp
|
|
cd tmp
|
|
if [[ ! `git clone https://github.com/passepartoutvpn/api --depth 1` ]]; then
|
|
cd api
|
|
git pull
|
|
fi
|
|
cd ../..
|
|
|
|
rm -rf $DESTINATION
|
|
mkdir -p $DESTINATION
|
|
cp -rp tmp/api/$API_VERSION $DESTINATION
|