#!/bin/sh version=`cat VERSION` name=aiger-$version archive=/tmp/${name}.tar.xz dir=/tmp/$name if [ -d $dir ] then rm -f $dir/* else mkdir $dir fi cp -a VERSION $dir cp -a aiger.c aiger.h VERSION $dir cat >$dir/README<$dir/makefile.in<$dir/configure<&2; exit 1;; esac shift done sed -e "s,@COMPILE@,\$COMPILE," makefile.in > makefile EOF chmod 755 $dir/configure cd /tmp rm -f $archive tar cfJ $archive $name rm -rf $dir ls -l $archive