Lines Matching +full:- +full:uall
2 set -eu
10 while [[ $# -gt 0 ]] ; do
12 -auto)
16 echo "Usage: $0 [-auto]" >&2
22 if [[ "$opt_auto" -eq 1 ]] ; then
36 if version_tag=$(git describe --candidates=0 --tags HEAD 2>/dev/null) ; then
44 if [[ "$is_tag" -eq 0 ]] ; then
45 last_tag=$(git tag --sort=-version:refname |head -n1)
47 version_replace="${last_tag}.post$(date -u +%y%m%d%H%M)"
58 local branch="${1-$(git symbolic-ref --short HEAD)}"
59 version="$(PYTHONPATH=$PWD/python3 python3 -c 'import httplib2; print(httplib2.__version__)')"
68 last_commit_message=$(git show --format="%s" --no-patch HEAD)
87 find . -name '*.pyc' -o -name '*.pyo' -o -name '*.orig' -delete
88 rm -rf python{2,3}/.cache
89 rm -rf build dist
90 local venv=./venv-release
91 if [[ ! -d "$venv" ]] ; then
93 $venv/bin/pip install -U check-manifest pip 'setuptools>=43.0' wheel twine
95 $venv/bin/python setup.py clean --all
97 $venv/bin/check-manifest || echo "FIXME check-manifest" >&2
103 git push --tags
120 git commit -a -m "v$version_next release"
122 echo "Re-exec $0 to continue" >&2
129 echo -n "Enter next version (empty to abort): " >&2
131 if [[ -z "$version_next" ]] ; then
146 # sed -E --in-place='' -e "s/VERSION =.+/VERSION = \"$version_replace\"/" setup.py
147 …# sed -E --in-place='' -e "s/__version__ =.+/__version__ = \"$version_replace\"/" python2/httplib2…
149 if ! sed -E --in-place='' -e "$sed_expr" "$path" ; then
159 git log --format='%h %an %s' "v$version"^.. -- || exit 1
162 patch -p1 <<EOT
164 --- a/CHANGELOG
166 @@ -0,0 +1,4 @@
174 [[ -z "$editor" ]] && editor="$EDITOR"
175 if [[ -n "$editor" ]] ; then
195 if git diff --exit-code "$path" ; then
202 if [[ -n "$(git status --short -uall)" ]] ; then
205 git status --short -uall
213 local version_setup=$(fgrep 'VERSION =' setup.py |tr -d " '\"" |cut -d\= -f2)
214 local version_py2=$(cd python2 ; python2 -Es -c 'import httplib2;print(httplib2.__version__)')
215 local version_py3=$(cd python3 ; python3 -Es -c 'import httplib2;print(httplib2.__version__)')
233 read -n1 -p "$prompt" reply >&2
237 if [[ -z "$reply" ]] && [[ "$prompt" =~ $default_y ]] ; then