1*ebfedea0SLionel Sambuc#! /bin/sh 2*ebfedea0SLionel Sambuc 3*ebfedea0SLionel Sambuccase "$#" in 4*ebfedea0SLionel Sambuc0) 5*ebfedea0SLionel Sambuc t=$(date +%Y%m%d) 6*ebfedea0SLionel Sambuc ;; 7*ebfedea0SLionel Sambuc*) 8*ebfedea0SLionel Sambuc t=$1 9*ebfedea0SLionel Sambuc ;; 10*ebfedea0SLionel Sambucesac 11*ebfedea0SLionel Sambucac=ac.$$ 12*ebfedea0SLionel Sambucawk -F, -v t=$t '/AC_INIT/ { printf("%s,[%s],%s\n", $1, t, $3); next} { print }' dist/configure.ac > $ac && mv $ac dist/configure.ac 13*ebfedea0SLionel Sambuc(cd dist && autoconf && autoheader) 14*ebfedea0SLionel Sambucmv dist netpgp-$t 15*ebfedea0SLionel Sambuctar --exclude CVS --exclude .libs --exclude autom4te.cache --exclude \*.lo --exclude \*.o --exclude \*.la -cvzf netpgp-$t.tar.gz netpgp-$t 16*ebfedea0SLionel Sambucmv netpgp-$t dist 17*ebfedea0SLionel Sambuc 18