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-nosrc-$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


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

- GNU
  info-gnu@gnu.org
- Savannah / GNU Planet
  http://savannah.gnu.org/p/freedink
- FreeCode
  https://freecode.com/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

pdebuild

# http://mentors.debian.net/cgi-bin/maintainer-intro
cd /var/cache/pbuilder/result/
debsign freedink-data_$VERSION-1_*.changes
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/package/freedink-data/
http://pkgs.fedoraproject.org/cgit/freedink-data.git/
