source: pyromaths/trunk/fuentes/utils/make_packages.sh @ 423

Last change on this file since 423 was 423, checked in by mabarracus, 4 years ago

add sources from pyromaths 15.10

  • Property svn:executable set to *
File size: 2.4 KB
Line 
1#!/bin/bash
2DIR=$(cd `dirname $0` && pwd)
3PYROPATH=$(cd `dirname $0` && cd .. && pwd)
4
5# Install build dependencies (if needed)
6if [ ! -f /usr/bin/debuild ];
7then
8    sudo apt-get install devscripts equivs
9fi
10if [ ! -f /usr/bin/rpm ];
11then
12    sudo apt-get install rpm
13fi
14
15# Update pyromaths version
16VERSION=`date +%y.%m`
17echo "What is the current version number? (Default: ${VERSION})"
18read touche
19case "$touche" in
20  "" )
21  ;;
22  * )
23  VERSION="$touche"
24  ;;
25esac
26echo "*** Update pyromaths version..."
27sed -i "s/VERSION ?= .*/VERSION ?= ${VERSION}/" ${PYROPATH}/Makefile
28
29# Clean-up and create Documentation
30cd $PYROPATH/Doc
31make clean
32make doctest
33make html
34
35# Prepare Changelog
36cd $PYROPATH
37head -20 NEWS
38dch -v ${VERSION}-1
39dch -r
40
41# Clean-up and create packages
42make clean
43make all
44make repo
45
46echo "*** Create Windows binary..."
47echo "Hit 'enter' when Windows package is ready."
48read touche
49
50echo "*** Tag git develop ***"
51echo "Do you want to commit and tag the git develop branch (o/N)?"
52read touche
53case "$touche" in
54  [oO] )
55  git commit -am 'Pyromaths Release'
56  git tag -u B39EE5B6 version-${VERSION} -m "Pyromaths ${VERSION}"
57  #git push --tags:
58  ;;
59esac
60
61echo "*** Update pyromaths web-site links..."
62cat > ${PYROPATH}/pyrosite.txt << EOF
63
64<<<<<<< HEAD
65* !/static/img/debian.png(Linux)! "Pyromaths pour Linux - deb":/telecharger/pyromaths_${VERSION}_all.deb
66* !/static/img/redhat.png(Linux)! "Pyromaths pour Linux - rpm":/telecharger/pyromaths-${VERSION}-1.noarch.rpm
67* !/static/img/macosx.png(Mac OS X)! "Pyromaths pour Mac OS X":/telecharger/pyromaths-${VERSION}-macos.dmg
68* !/static/img/winvista.png(Windows)! "Pyromaths pour Windows":/telecharger/pyromaths-${VERSION}-win32.exe
69* !/static/img/source.png(Sources)! "Sources de Pyromaths":/telecharger/pyromaths-${VERSION}-sources.tar.bz2
70=======
71* !/media/img/debian.png(Linux)! "Pyromaths pour Linux - deb":/telecharger/pyromaths_${VERSION}-1_all.deb
72* !/media/img/redhat.png(Linux)! "Pyromaths pour Linux - rpm":/telecharger/pyromaths-${VERSION}-1.noarch.rpm
73* !/media/img/macosx.png(Mac OS X)! "Pyromaths pour Mac OS X":/telecharger/pyromaths-${VERSION}-macos.dmg
74* !/media/img/winvista.png(Windows)! "Pyromaths pour Windows":/telecharger/pyromaths-${VERSION}-win32.exe
75* !/media/img/source.png(Sources)! "Sources de Pyromaths":/telecharger/pyromaths-${VERSION}-sources.tar.bz2
76>>>>>>> develop
77
78<hr/>
79
80h4. Nouveautés de cette version :
81
82EOF
Note: See TracBrowser for help on using the repository browser.