Skip to content

Commit

Permalink
mkrelease: english
Browse files Browse the repository at this point in the history
  • Loading branch information
FadeMind committed Jun 29, 2016
1 parent 5c53b3d commit cd85578
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions mkrelease
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/bin/bash
# Wydobycie informacji o ostatnim tagu w repozytorium git.
#!/usr/bin/env bash
# Extract lastest release tag from git log
Last_Release=$(git describe | cut -d '-' -f 1)
#Zmiana wersji dla I-Nex.gambas
sed -i -e 's|^Version.*|Version='$1'|' ./I-Nex/i-nex/.project
sed -i -e 's|^PackageName=i-nex-.*|PackageName=i-nex-'$1'|' ./I-Nex/i-nex/.project
# Utworzenie pliku ze zmianami na podstawie logu git od ostatniej znanej wersji
git log $Last_Release..HEAD > changelogs/changelog-$1
# Bump version in I-Nex.gambas
sed -i -e 's|^Version.*|Version='$1'|' ./I-Nex/i-nex/.project
sed -i -e 's|^PackageName=i-nex-.*|PackageName=i-nex-'$1'|' ./I-Nex/i-nex/.project
# Update changelog filr based on git log.
git log $Last_Release..HEAD > changelogs/changelog-$1

cat > ./debian/changelog2 <<EOF
i-nex ($1) stable; urgency=medium
Expand All @@ -18,4 +18,4 @@ EOF

cat ./debian/changelog >> ./debian/changelog2
rm ./debian/changelog
mv ./debian/changelog2 ./debian/changelog
mv ./debian/changelog2 ./debian/changelog

0 comments on commit cd85578

Please sign in to comment.