Commit c2f22309 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files


parent 9e7e6a9f
#!/bin/bash #!/bin/bash
# Usage: ./ version [pkg_name] [revision]
# pkg_name defaults to the name of the current working directory
# eg.: ./ 0.8.1
set -e set -e
TAG=$1 TAG=$1
...@@ -13,7 +17,7 @@ rm -vf *.tar* /tmp/*.tar* ...@@ -13,7 +17,7 @@ rm -vf *.tar* /tmp/*.tar*
if $(grep -q "v$TAG" <<< $(git tag)) if $(grep -q "v$TAG" <<< $(git tag))
then then
echo -e "\n!!! Ce tag existe !!!\n" echo -e "\n!!! This tag exists !!!\n"
git checkout "v$TAG" git checkout "v$TAG"
git submodule update --init git submodule update --init
else else
...@@ -33,7 +37,8 @@ gzip "${SOFTAG}.tar" ...@@ -33,7 +37,8 @@ gzip "${SOFTAG}.tar"
gpg --armor --detach-sign "${SOFTAG}.tar.gz" gpg --armor --detach-sign "${SOFTAG}.tar.gz"
echo -e "# Done ! Now you have to run:"
echo -e "git push --tags" echo -e "git push --tags"
TAGS=$(git tag -l|tail -n2|sed ':a;N;$!ba;s/\n/../g') TAGS=$(git tag -l|grep '^v'|tail -n2|sed ':a;N;$!ba;s/\n/../g')
echo -e "git log --grep='Merge pull request #' --date-order --pretty='format:- %b' $TAGS" echo -e "git log --grep='Merge pull request #' --date-order --pretty='format:- %b' $TAGS"
echo -e "# Draft new release" echo -e "# Draft new release"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment