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


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

VERSION=1.08.`date +%Y%m%d`
git2cl > ChangeLog
# Edit NEWS (content + _version number_)
# Sync debian/
# Sync freedink-data.spec
# Edit freedink-data.spec (Version/Release + %changelog w/ C-c C-e)
# Edit dink/l10n/dink.pot (Project-Id-Version and PO-Revision-Date)
# Sync autobuild/

# Test freedink-data-$version.tar.gz and
# freedink-data-inst-$version.tar.gz.
make dist

# Commit the current state
git commit -am "Release $VERSION"

# Tag it
git tag -s v$VERSION -m v$VERSION
# Here you can test the release in the autobuilder
# (preferably by rsync'ing the repository)

git push origin master
git push --tags


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

VERSION=1.08.`date +%Y%m%d`
./freedink-data-snapshot.sh release $VERSION
#./freedink-data-exe.sh
./freedink-data-debs.sh # as root
./freedink-data-rpms.sh # in a Fedora vserver


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

# Upload it at ftp.gnu.org
# http://www.gnu.org/prep/maintain/html_node/Automated-FTP-Uploads.html
gpg --sign -b freedink-data-$VERSION.tar.gz
cat <<EOF | gpg --clearsign -a > freedink-data-$VERSION.tar.gz.directive.asc
version: 1.1
directory: freedink
filename: freedink-data-$VERSION.tar.gz
EOF

# Send all 3 files to ftp://anonymous@ftp-upload.gnu.org/incoming/ftp/
# freedink-data-$VERSION.tar.gz
# freedink-data-$VERSION.tar.gz.sig
# freedink-data-$VERSION.tar.gz.directive.asc
lftp -e "mput freedink-data-$VERSION.tar.gz*; exit" -u anonymous, ftp-upload.gnu.org/incoming/ftp/

# Make a pristine-tar copy of the release. Beware, this requires 500MB
# of free space! (but only a few kBs in the .git repository)
pristine-tar commit freedink-data-$VERSION.tar.gz v$VERSION
git push origin pristine-tar

# Upload sigs to freedink.org


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

cd www/releases/

for f in ../snapshots/freedink-data-$VERSION{,-nosrc}.*; do
    ln -nfs $f
done

pushd debian
    for f in ../../snapshots/debian/freedink-data_$VERSION*; do
        ln -nfs $f
    done
    make
popd

pushd fedora
    for f in ../../snapshots/fedora/freedink-data-$VERSION-*; do
        ln -nfs $f
    done
    make  # in a Fedora vserver
    cp -a ../../snapshots/fedora/freedink-data.spec .
popd

# TODO: update woe installer


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/???/
- 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-data

# http://wiki.debian.org/Games/VCS
# http://wiki.debian.org/Games/VCS/git
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-data-$VERSION.tar.gz
# - Import debian/ from "upstream"
# - Fix stuff...
git commit -am "New upstream release - v$VERSION"
git-buildpackage --git-tag
git push origin master pristine-tar upstream
git push --tags
# http://mentors.debian.net/cgi-bin/maintainer-intro
dput mentors ../freedink-data_$VERSION-1_*.changes


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

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

See also:
https://admin.fedoraproject.org/pkgdb/acls/name/freedink-data
http://pkgs.fedoraproject.org/cgit/freedink-data.git/
