Commit c6bf6d29 authored by Sven Brauch's avatar Sven Brauch

fish (sorry) scripts to simplify releases

 - creates branches
 - updates version numbers
 - creates tarballs with releaseme
parent 9f5d9b44
#!/usr/bin/env fish
set newbranch 5.1
for repo in kdevelop kdevplatform kdev-python kdev-php;
cs $repo
git checkout master
git pull --rebase
git checkout -b $newbranch
git push origin $newbranch
end
#!/usr/bin/env fish
set VERSION 5.0.80
# git://anongit.kde.org/releaseme
cs releaseme
for application in kdev-python kdev-php kdevplatform kdevelop
./tarme.rb --version $VERSION --origin stable $application
./tagme.rb --version $VERSION
end
#!/usr/bin/env fish
set MAJOR_VERSION 5
set MINOR_VERSION 0
set PATCH_VERSION 80
set BRANCH 5.1
function do_replace
git checkout $BRANCH
sed -i "s/set(.*$argv""_VERSION_MAJOR .*)/set($argv""_VERSION_MAJOR $MAJOR_VERSION)/g" CMakeLists.txt
sed -i "s/set(.*$argv""_VERSION_MINOR .*)/set($argv""_VERSION_MINOR $MINOR_VERSION)/g" CMakeLists.txt
sed -i "s/set(.*$argv""_VERSION_PATCH .*)/set($argv""_VERSION_PATCH $PATCH_VERSION)/g" CMakeLists.txt
git diff
git commit -a -m "Update version number to $MAJOR_VERSION.$MINOR_VERSION.$PATCH_VERSION"
git push --set-upstream origin $BRANCH
end
cs kdev-python
do_replace KDEVPYTHON
cs kdev-php
do_replace KDEVPHP
cs kdevelop
do_replace KDEVELOP
cs kdevplatform
do_replace KDEVPLATFORM
Markdown is supported
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