#!/bin/bash
version="1.0";
for file in *.mf
do
sed "s/% last modification:.*$/% last modification: April 18, 2010/g" $file > tmp.txt;
mv tmp.txt $file;
done;
cp *.mf source/
cp /home/phan/tex/inputs/testmac.tex texinputs/
cp /home/phan/tex/inputs/mathabx.tex texinputs/
cp /home/phan/tex/inputs/mathabx.sty texinputs/
cp /home/phan/tex/inputs/mathabx.dcl texinputs/
#tex mathtest; dvips mathtest -o;
#pdftex mathtest
tar -cvf mathabx-$version.tar mathtest.tex README source texinputs \@distrib \@fulldistrib \@comp \@compile
gzip mathabx-$version.tar
rm -f source/*
rm -f texinputs/*
for file in *.ps.gz *.log *~ *.dvi; do
    rm $file
done
