How to make a release     -*- shell-script -*-


On the developer computer:
--------------------------

VERSION=1.08.$(date +%Y%m%d)
cd freedink/
git checkout -b branch-$VERSION-stable
git2cl > ChangeLog
# Edit NEWS
# Edit configure.ac (AC_INIT)
# Sync debian/
# Sync freedink.spec
# Edit freedink.spec (Version/Release + %changelog)
# (Note: po/freedink.pot is updated automatically)

make distcheck
git commit -am "Release $VERSION"
git tag v$VERSION
git push origin branch-$VERSION-stable master
git push --tags
# Here you can test the release in the autobuilder

# Pristine TAR - efficienty storing the release in the Git repository
pristine-tar commit freedink-$VERSION.tar.gz v$VERSION
git push origin pristine-tar

# Cleanly merge stable branch back to trunk
git checkout master
git merge branch-$VERSION-stable --no-commit
# Don't apply version changes:
git checkout configure.ac
emacs NEWS
git commit


On the autobuilder:
-------------------

./freedink-snapshot.sh release
./freedink-exe.sh
./freedink-debs.sh # as root
./freedink-rpms.sh # in a Fedora vserver


On the maintainer computer:
---------------------------

# http://www.gnu.org/prep/maintain/html_node/FTP-Upload-Directive-File-_002d-v1_002e1.html
gpg --sign -b freedink-$VERSION.tar.gz
cat <<EOF | gpg --clearsign -a > freedink-$VERSION.tar.gz.directive.asc
version: 1.1
directory: freedink
filename: freedink-$VERSION.tar.gz
EOF
lftp -e "mput freedink-$VERSION.tar.gz*; exit" -u anonymous, ftp-upload.gnu.org/incoming/ftp/
# Check ftp://ftp.gnu.org/gnu/freedink/

# Upload sigs to freedink.org


On the website:
---------------

cd www/releases/

for f in ../snapshots/freedink-$VERSION.*; do
    ln -nfs $f
done

pushd debian
    for f in ../../snapshots/debian/freedink{,-engine,-engine-dbg}_$VERSION*; do
        ln -nfs $f
    done
    make
popd

# On a Fedora vserver:
pushd fedora
    for f in ../../snapshots/fedora/freedink{,-engine,-debuginfo}-$VERSION-*; do
        ln -nfs $f
    done
    make
    cp -a ../../snapshots/fedora/freedink.spec .
popd

pushd woe
    for f in ../../snapshots/woe/freedink{,edit,-all-installer}-$VERSION*; do
        ln -nfs $f
    done
    make
popd


Submit the release to:
----------------------

- GNU
  info-gnu@gnu.org
- Savannah / GNU Planet
  http://savannah.gnu.org/p/freedink
- freshmeat
  http://freshmeat.net/projects/freedink/
- Translation Project
  http://translationproject.org/html/maintainers.html
- Dink Network
  http://www.dinknetwork.com/contribute/version/new/gnu_freedink/
- Debian GNU/Linux
  http://wiki.debian.org/Games/Sponsors/Queue
- Fedora GNU/Linux
  http://fedoraproject.org/wiki/PackageMaintainers/UpdatingPackageHowTo
- OpenSUSE GNU/Linux
  tell Stefan about the latest official srpm
- ArchLinux GNU/Linux
  contact Petteri
- FreeBSD
  contact Stephen
- Ubuntu GNU/Linux (Debian merge request)
  contact shirish
- Press...


Debian notes:
-------------

Check this for updates:
- /usr/share/doc/debian-policy/upgrading-checklist.txt.gz
- http://lintian.debian.org/full/pkg-games-devel@lists.alioth.debian.org.html#freedink

# http://wiki.debian.org/Games/VCS
git clone YOU@git.debian.org:/git/pkg-games/freedink-data
cd freedink-data
git checkout -b pristine-tar origin/pristine-tar
git checkout -b upstream origin/upstream

# set DEBEMAIL

git checkout master
git-import-orig --pristine-tar ../freedink-$VERSION.tar.gz
# - Import debian/ from "upstream"
# - Fix stuff...
git commit -am "New upstream release - v$VERSION"
git-buildpackage --git-tag --git-pristine-tar
git push origin master pristine-tar upstream
git push --tags
# http://mentors.debian.net/cgi-bin/maintainer-intro
dput mentors ../freedink_$VERSION-1_i386.changes


Fedora notes:
-------------

Do:
cvs update
then check:
http://fedoraproject.org/wiki/PackageMaintainers/UpdatingPackageHowTo#Example
which is detailing this step.

See also:
https://admin.fedoraproject.org/pkgdb/packages/name/freedink
http://cvs.fedoraproject.org/viewvc/rpms/freedink/
