-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor updates to documentation and versioning
- Loading branch information
Showing
4 changed files
with
55 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Update sister repository | ||
if [ "$1" != "" ] && [ "$1" != "-r" ] && [ "$1" != "--run" ]; then | ||
echo "usage: update_public.sh [-r|--run]" >&2 | ||
echo " without the parameter -r/--run, a dry-run will be executed instead" >&2 | ||
exit 1 | ||
fi | ||
if [ "$1" == "-r" ] || [ "$1" == "--run" ]; then | ||
dry=N | ||
else | ||
dry=Y | ||
fi | ||
|
||
set -eu | ||
|
||
function stackd { pushd "$1" > /dev/null; } | ||
function destackd { popd &> /dev/null; } | ||
|
||
script_dir=$(dirname "$0") | ||
target_dir="../cookadream_public" | ||
|
||
stackd "$script_dir" | ||
function finish { | ||
while destackd; do :; done | ||
} | ||
trap finish EXIT | ||
|
||
commit="$(git log -n 1 --pretty=format:'%H')" | ||
|
||
stackd "$target_dir" | ||
git fetch --tags | ||
version="$(git describe --tags --abbrev=0)" | ||
# commit="$(git rev-list -n 1 "$version")" | ||
destackd | ||
|
||
if [ "$dry" == "N" ]; then | ||
output="utils/version_info.py" | ||
else | ||
output="/dev/stdout" | ||
fi | ||
{ | ||
echo "PRODUCT_VERSION = '$version'" | ||
echo "PRODUCT_COMMIT = '$commit'" | ||
} > "$output" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
PRODUCT_VERSION = '0.1.0' | ||
PRODUCT_COMMIT = 'pre-release-0000000000000000000000000000' | ||
PRODUCT_VERSION = 'v0.1.0' | ||
PRODUCT_COMMIT = 'a8d9eb8227f982833d678cd38c1e9263f6c4e8f5' |