#Make this directory on build because GIT won't let you commit an empty
#directory
mkdir -p lib
# Fix broken encodings that were not catched in fix_invalid_encoding.patch
for utf16 in `find . -name "*.java" -exec file \{\} \; | grep "ISO-8859 text" | sed 's/: .*//'` ; do \
echo "Fixing ISO-8859 encoding of $$utf16" ; \
sed -i '/^Copyright/{;N;s/Copyright.*1999 CERN - European Organization for Nuclear Research/Copyright (c) 1999 CERN - European Organization for Nuclear Research/;}' $$utf16; \
done
ant -Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5 build