3 # Script to prepare Debian packages of conkeror including the creation
4 # of the so called source package. Do not move away from its current
5 # location -- it depends on it.
7 # It accepts one optional parameter: an upstream version number,
8 # e.g. "0.9.1". If a parameter is given, no date based snapshot
9 # version number is generated.
11 # Copyright (C) 2008-2009, 2012 Axel Beckert <abe@deuxchevaux.org>
13 # Find the full path of the current packaging directory and cd to it
14 currdir
=`dirname $0`/..
/..
16 olddir
=$
(basename $
(pwd -P))
17 echo currdir
=$currdir olddir
=$olddir
19 # Unapply all patches if there are any
22 # Update the code from the git repository
25 # Display the changes and ask if we should continue
27 echo -n "Hit enter to continue and merge changes or hit Ctrl-C to abort."
30 # Merge in the fetched changes
31 git rebase origin
/master
33 # Rename the packaging directory to reflect the new version number
37 version
=`grep ^Version= application.ini | \
38 sed -e 's/^Version=//;
39 s/\([0-9]\)pre/\1~~pre/;
40 s/\([0-9]\)\([ab][0-9]\|rc\|beta\|alpha\)/\1~\2/' \
43 echo -n "Hit enter to rename directory from $olddir to conkeror-$version
44 and generate source tar ball or hit Ctrl-C to abort."
47 # Clean up before renaming
48 rm -f spawn-process-helper conkeror-spawn-helper
53 mv -vi $olddir conkeror-
$version
55 # Create source package out of the git working copy
56 tar cvzf conkeror_
$version.orig.
tar.gz \
57 --exclude=conkeror-
$version/debian \
59 --exclude=.gitignore \
61 --exclude=configure-stamp \
64 # Change back to the packaging directory