# May this be automated one day.

git checkout master
git pull upstream master
git checkout -b gnurl-$new curl-$new
git cherry-pick `git log gnurl-$old | head -n 1 | cut -c8-`
git mergetool
git cherry-pick --continue

make clean
make autoclean
guix build -f gnurl-guix.scm

# XXX: Fix the one remaining /gnu/store/… reference in shebang
./buildconf
./configure --enable-ipv6 --with-gnutls --without-libssh2 --without-libmetalink \ 
--without-winidn --without-librtmp --without-nghttp2 --without-nss --without-cyassl \
--without-polarssl --without-ssl --without-winssl --without-darwinssl --disable-sspi \
--disable-ntlm-wb --disable-ldap --disable-rtsp --disable-dict --disable-telnet --disable-tftp \
--disable-pop3 --disable-imap --disable-smtp --disable-gopher \
--disable-file --disable-ftp --disable-smb
make
make test
make distcheck
make clean

git push .....
git diff HEAD^ HEAD > ../gnurl-$new.diff

# XXX: The procedure below should be replaced by a fixed "make dist"!
cp -a . ../gnurl-$new
cd ..
rm -rf gnurl-$new/.git
tar cjf gnurl-$new.tar.bz2 gnurl-$new
# XXX: Do .tar.xz and .zip releases as soon as drupal website is gone!
rm -rf gnurl-$new
gpg --local-user A88C8ADD129828D7EAC02E52E22F9BBFEE348588 --detach-sig gnurl-$new.tar.bz2
# login and upload.

