#!/bin/sh -e
#
# Copyright (c) 2002-2013 Martin A. Godisch <martin@godisch.de>

test -e wmwork.c
umask 022
aclocal
autoheader
autoconf
./configure
make distclean
rm -rf autom4te.cache
rm -f configure.scan autoscan.log
cd ..
chmod -R go=u-w .
version="`pwd`"
version="${version##*-}"
cd ..
tar cvzf wmwork-$version.tar.gz --exclude CVS --exclude .cvsignore --exclude debian wmwork-$version
ln -sf wmwork-$version.tar.gz wmwork_$version.orig.tar.gz
