Compiling and Uploading the Package
-----------------------------------

Compile:

  VERSION=$(awk '/^woodchuck / { gsub("[()]", "", $2); print $2; exit; }' debian/changelog)
  cd ~/src/woodchuck/build
  make dist
  cd ~/src
  rm -rf woodchuck-${VERSION}
  tar xfvz woodchuck/build/woodchuck-${VERSION}.tar.gz
  /scratchbox/login -d src/woodchuck-${VERSION} dpkg-buildpackage -us -uc -rfakeroot

On machine with the signing key:

  debsign -r theo.lan src/woodchuck_${VERSION}_armel.changes

Create directory on server:

  ssh hssl.cs.jhu.edu
  mkdir -p ~/public_html/woodchuck/dists/fremantle/maemo/binary-armel
  ln -s fremantle ~/public_html/woodchuck/dists/fremantle-1.3

Copy binaries (don't forget the .dsc, .changes and .tar.gz files!):

  scp ~/src/woodchuck*_${VERSION}* \
    hssl.cs.jhu.edu:public_html/woodchuck/dists/fremantle/maemo/binary-armel

Or, if building for Harmattan:

  scp ~/src/woodchuck*_${VERSION}* \
    hssl.cs.jhu.edu:public_html/woodchuck/dists/harmattan/harmattan/binary-armel

In the <SOMEPLACE> directory, run:

  cd ~/public_html/woodchuck
  apt-ftparchive packages dists/fremantle | gzip > dists/fremantle/maemo/binary-armel/Packages.gz

  apt-ftparchive packages dists/harmattan | gzip > dists/harmattan/harmattan/binary-armel/Packages.gz


Distributing the Package
------------------------

To get downloading of the install file correct, one has to add the
following to an .htaccess file:

  AddType application/x-install-instructions .install
