Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 43 lines (34 sloc) 0.704 kb
#!/bin/sh -e
VN=$(grep dummy common/FoX_common.F90 | awk '{print $6}' | sed -e s/-dummy//)
if test x$VN != x\'$1\'; then
echo Wrong version number
exit 1
fi
git-archive --format=tar --prefix=FoX-$1/ HEAD | gzip -9 > ../FoX-$1-full.tar.gz
mkdir tmpFoX
cd tmpFoX
tar xzf ../../FoX-$1-full.tar.gz
(
cd FoX-$1
make cutdown
)
tar czf ../../FoX-$1.tar.gz FoX-$1
rm -rf FoX-$1
for i in wxml wcml sax dom
do
tar xzf ../../FoX-$1-full.tar.gz
(
cd FoX-$1
(
cd config; \
sed -e "s/CUTDOWN_TARGET=.*/CUTDOWN_TARGET=$i/" -i configure.ac; \
make
)
make cutdown-$i
)
tar czf FoX-$1-$i.tar.gz FoX-$1
rm -rf FoX-$1
done
cp FoX-$1-* ../..
cd ..
rm -rf tmpFoX
Jump to Line
Something went wrong with that request. Please try again.