-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
new_version
executable file
·25 lines (23 loc) · 1.06 KB
/
new_version
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#set internal version number in configure.ac before tagging.
#to install eclint on ubuntu:
#sudo apt-get purge nodejs npm
#curl -sL https://deb.nodesource.com/setup | sudo bash -
#sudo apt-get install -y nodejs
#sudo apt-get install npm
#sudo npm install -g eclint
find -regextype posix-extended -regex '.*\.(cc|h|cpp)' | xargs eclint fix
find -regextype posix-extended -regex '.*\.(cc|h|cpp)' | grep -v vw_clr | xargs astyle -s2 --style=horstmann --lineend=linux --keep-one-line-blocks --keep-one-line-statements
git commit -a -m "consistent indentation with astyle (before releasing $1)"
git push
git branch $1
git checkout $1
./autogen.sh
make
cp LICENSE COPYING
git add -f ltmain.sh acinclude.d/* aclocal.m4 config.guess missing install-sh config.sub depcomp COPYING Makefile.in configure config.status libtool vowpalwabbit/config.h.in vowpalwabbit/Makefile.in cluster/Makefile.in library/Makefile.in
rm Makefile vowpalwabbit/Makefile cluster/Makefile library/Makefile
git commit -a -m "added autogen extra files"
git tag $1
git checkout master
git branch -D $1
git push --tags