File: createrelease

package info (click to toggle)
cppcheck 1.76.1-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 13,608 kB
  • sloc: cpp: 140,390; python: 3,430; ansic: 2,808; xml: 670; makefile: 501; sh: 237
file content (79 lines) | stat: -rwxr-xr-x 2,495 bytes parent folder | download
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#!/bin/bash
#
# A script for creating release packages. The release packages are create in the home directory.
#
# self check:
# cppcheck --enable=style --inconclusive cli gui lib
#
# Update translations
#   lupdate gui.pro
#
# Make sure "cppcheck --errorlist" works. For example with:
# make test
# ./cppcheck --errorlist > errlist.xml && xmllint --noout errlist.xml
# ./cppcheck --xml-version=2 --errorlist > errlist.xml && xmllint --noout errlist.xml
#
# Update AUTHORS using output from:
# git log --format='%aN' 1.72..HEAD | sort -u > AUTHORS2 && diff -y AUTHORS AUTHORS2 | less
#
# Update version numbers in:
# sed -i "s/1.[0-9][0-9].99/1.62/" cli/main.cpp
# sed -i "s/MINOR [0-9][0-9]/MINOR 62/" lib/version.h
# sed -i "s/1.[0-9][0-9] dev/1.62/" man/manual.docbook
# sed -i "s/1.[0-9][0-9] dev/1.62/" win_installer/productInfo.wxi
# sed -i "s/1.[0-9][0-9].99/1.62/" win_installer/productInfo.wxi
# Verify:
# grep '\.99' */*.[ch]* && grep '[0-9][0-9] dev' */*.[ch]*
# git commit -a -m "1.43: Set versions"
#
# Update the Makefile:
# make dmake && ./dmake --release
# git commit -a -m "1.43: Updated Makefile"
#
# Build and test the windows installer
#
# Tag:
# git tag 1.43
# git push --tags
#
# Create release:
# ./createrelease 1.43
#
# Restore the Makefile:
# ./dmake
# git commit -a -m "Makefile: Set debug mode"
#
# Update download link on index.php main page
#
#
# write a news
#
# save "cppcheck --doc" output on wiki, write new release date on wikis
#
# compile new democlient:
# ssh -t danielmarjamaki,cppcheck@shell.sourceforge.net create
# ./build-cppcheck.sh 1.43
#
# run daca with new release

# Tag to use
tag=$1

# Name of release
releasename=cppcheck-$tag

# Create archives..
git archive --format=tar --prefix=$releasename/ $tag | gzip > ~/$releasename.tar.gz
git archive --format=tar --prefix=$releasename/ $tag | bzip2 > ~/$releasename.tar.bz2
git archive --format=zip -9 --prefix=$releasename/ $tag > ~/$releasename.zip

scp ~/$releasename.* danielmarjamaki,cppcheck@frs.sourceforge.net:/home/frs/project/c/cp/cppcheck/cppcheck/$tag/

# Generate the manual.pdf, manual.html and version.txt
make
./cppcheck --version > version.txt
scp version.txt danielmarjamaki,cppcheck@web.sourceforge.net:htdocs/
docbook2pdf man/manual.docbook
scp manual.pdf danielmarjamaki,cppcheck@web.sourceforge.net:htdocs/
xsltproc -o manual.html /usr/share/xml/docbook/stylesheet/nwalsh/xhtml/docbook.xsl man/manual.docbook
scp manual.html danielmarjamaki,cppcheck@web.sourceforge.net:htdocs/