1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
#! /bin/sh
set -e
VERSION=0.9.0
DATE=20120420
CVSROOT=:pserver:anoncvs@www.gccxml.org:/cvsroot/GCC_XML
export CVSROOT
cvsdirname=`pwd`
dirname=gccxml-${VERSION}+cvs${DATE}.orig
tarname=gccxml_${VERSION}+cvs${DATE}.orig.tar.gz
rm -rf ${dirname}
cvs -z3 export -D ${DATE} -d ${dirname} gccxml
# Remove files with (a) no license, or (b) non-free license.
#
rm -rf ${dirname}/GCC_XML/Support/Borland
rm -f ${dirname}/GCC/libiberty/xatexit.c
# Build tarball
#
GZIP="--best --no-name" tar czf ../${tarname} ${dirname}
rm -rf ${dirname}
|