Skip to content
Snippets Groups Projects
Unverified Commit 9d7fedcb authored by w2ak's avatar w2ak
Browse files

makeversion: corrections

parent 89098c1a
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@
### 2.0.0-beta
Changed the whole layout, based on models from the Direction of Communication at
* Changed the whole layout, based on models from the Direction of Communication at
the École polytechnique.
# 1
......@@ -19,4 +19,4 @@ the École polytechnique.
### 1.0.0
Basic beamer package, based on the `Berkeley` theme.
* Basic beamer package, based on the `Berkeley` theme.
......@@ -45,15 +45,15 @@ compareversions () {
makechangelog () {
echo -e "\n# Enter here the informations about changes in your program in version %s." "$newv" > release/changelog
tag=${oldv%%-*};
tag=$(git describe --tags --abbrev=0);
git log --oneline "$tag"..HEAD | sed 's/^/# /' >> release/changelog
vim -c 'set ft=gitcommit | set tw=80 | set cc=+1 | startinsert' release/changelog
wc=$(sed '/^#/ d' release/changelog | wc -w)
wc=$(sed '1d; 2d; /^#/ d' release/changelog | wc -w)
if [ $wc -gt 0 ]; then
{
cat release/changelog_before
cat release/changelog_template
sed '/^#/ d' release/changelog
sed '1d; 2d; /^#/ d' release/changelog
echo ""
cat release/changelog_after
} | uniq > CHANGELOG.md
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment