2 # Script to prepare Debian packages of conkeror including the creation
3 # of the so called source package.
5 # Copyright (C) 2008-2009 Axel Beckert <abe@deuxchevaux.org>
7 # Find the full path of the current packaging directory and cd to it
8 currdir
=`dirname $0`/..
10 olddir
=$
(basename $
(pwd -P))
11 echo currdir
=$currdir olddir
=$olddir
13 # Unapply all patches if there are any
16 # Update the code from the git repository
19 # Display the changes and ask if we should continue
21 echo -n "Hit enter to continue and merge changes or hit Ctrl-C to abort."
24 # Merge in the fetched changes
25 git rebase origin
/master
27 # Rename the packaging directory to reflect the new version number
28 version
=0.9~git
`date +%y%m%d`
29 echo -n "Hit enter to rename directory from $olddir to conkeror-$version
30 and generate source tar ball or hit Ctrl-C to abort."
33 # Clean up before renaming
34 rm -f spawn-process-helper conkeror-spawn-helper
39 mv -vi $olddir conkeror-
$version
41 # Create source package out of the git working copy
42 tar cvzf conkeror_
$version.orig.
tar.gz
--exclude=debian
--exclude=.git
--exclude=.pc
--exclude=configure-stamp conkeror-
$version
44 # Change back to the packaging directory