File prepare-src-tarball of Package netpbm

#!/bin/sh -x

#This script is used to create netpbm-$VER-nohpcdtoppm-nojbig.tar.bz2
#from netpbm-$VER.tgz
#netpbm-$VER.tgz can be found at http://sourceforge.net/projects/netpbm/


VER=10.26.44
rm -rf REMOVE
mkdir REMOVE
cd REMOVE
tar xzf ../netpbm-$VER.tgz

cd netpbm*/converter/ppm/hpcdtoppm || exit 1
rm -rf *
echo all: >> Makefile
echo install.bin: >> Makefile
echo install.man: >> Makefile
echo install.data: >> Makefile
echo clean: >> Makefile
cd ../../../..

cd netpbm*/converter/other/jbig || exit 1
rm -rf *
echo all: >> Makefile
echo install.bin: >> Makefile
echo install.man: >> Makefile
echo install.data: >> Makefile
echo clean: >> Makefile
cd ../../../..

cd netpbm*/converter/ppm/ppmtompeg || exit 1
rm -rf *
echo all: >> Makefile
echo install.bin: >> Makefile
echo install.man: >> Makefile
echo install.data: >> Makefile
echo clean: >> Makefile
cd ../../../..



tar cjf ../netpbm-$VER-nohpcdtoppm-nojbig.tar.bz2 *


openSUSE Build Service is sponsored by