I don't know if there is a build package script for Ubuntu but I'm currently working on a script that fetch the sources from SVN then make a .deb package (haha laziness to type in console the same commands everytime).
Version 0.1 :
- Update C::B souces (so you have already checkout)
- Put the correct revision number
- Build package
# Code::Blocks Build deb script from SVN
# Version 0.1b
################################################################################
# #
# Copyright (C) 2007 Kurapix #
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation, either version 3 of the License, or #
# (at your option) any later version. #
# #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program. If not, see <http://www.gnu.org/licenses/>. #
# #
################################################################################
# Go to $CB_SOURCES_PATH (which should be Code::Blocks sources directory)
cd ~/Programmes/Sources/CB/trunk
# Remove files without revision number quietly
sudo svn-clean --quiet
# Update the Code:Blocks sources from SVN
svn update
# Store revision number in variable
CB_SVN_REV=`svn --xml info | tr -d '\r\n' | sed -e 's:.*<commit.*revision="\([0-9]*\)".*<\/commit>.*:\1:'`
# Change the revision number in the changelog to the latest updated revision
sed -i "1 s:1.0svn[-rev]*[0-9]*:1.0svn-rev$CB_SVN_REV:" debian/changelog
# Launch bootstrap
./bootstrap
# Build package
debuild -us -uc
For now it is a very simple script, I'm currently working on it to add some more functinnalities (like "Choose to update to the latest revision or another revision" or "doesn't build if version to compile has already been built" for example).
I'm new to scripting but my learning and the script is going pretty well I think
so I might be able to do a new release in July or August.
By the way, toufou and san and the others, using the script I've done you can have the right revision number
.
What do you think of this script thing?
Thank you
Kurapix