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


On the developer computer:
--------------------------
VERSION=3.2.3
git2cl > ChangeLog
# Edit NEWS
# Edit configure.ac (AC_INIT)
# Sync debian/
# Sync freedink-dfarc.spec
# Edit freedink-dfarc.spec (Version/Release + %changelog)
make distcheck
git commit -am "Release $VERSION"
git tag v$VERSION
git push
git push --tags
# Here you can test the release in the autobuilder


On the autobuilder:
-------------------
./dfarc-snapshot.sh release $VERSION
./dfarc-exe.sh
./dfarc-debs.sh # as root
./dfarc-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 dfarc-$VERSION.tar.gz
cat <<EOF | gpg --clearsign -a > dfarc-$VERSION.tar.gz.directive.asc
version: 1.1
directory: freedink
filename: dfarc-$VERSION.tar.gz
EOF
lftp -e "mput dfarc-$VERSION.tar.gz*; exit" -u anonymous, ftp-upload.gnu.org/incoming/ftp/
# Check ftp://ftp.gnu.org/gnu/freedink/

# Pristine TAR - efficienty storing the release in the Git repository
pristine-tar commit dfarc-$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/dfarc-*$VERSION*; do
        ln -nfs $f
    done
for dir in debian woe; do
    pushd $dir
    for f in ../../snapshots/$dir/freedink-dfarc-*$VERSION*; do
        ln -nfs $f
    done
    make
    popd
done
# On a Fedora vserver:
pushd fedora
    for f in ../../snapshots/fedora/freedink-dfarc-*$VERSION*; do
        ln -nfs $f
    done
    make
    cp -a ../../snapshots/fedora/freedink-dfarc.spec .
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/???/
- 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-dfarc

# 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 ../dfarc-$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-dfarc_$VERSION-1_i386.changes


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

Check
http://fedoraproject.org/wiki/PackageMaintainers/UpdatingPackageHowTo#Example
which is detailing this step.

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