1#!/bin/sh 2 3set -e 4 5if [ "$1" = "" ]; then 6 echo "usage: $0 expat.tar.bz2" 7 exit 1 8fi 9 10echo "Extracting $1" 11tar --extract --bzip2 --strip-components=1 --file $1 12 13echo "Saving COPYING to NOTICE" 14touch MODULE_LICENSE_BSD_LIKE 15mv COPYING NOTICE 16 17echo "Removing unnecessary files" 18rm CMake.README 19rm CMakeLists.txt 20rm ConfigureChecks.cmake 21rm MANIFEST 22rm Makefile.in 23rm aclocal.m4 24rm configure 25rm configure.ac 26rm examples/elements.dsp 27rm examples/outline.dsp 28rm expat.dsw 29rm expat.pc.in 30rm expat_config.h.cmake 31rm expat_config.h.in 32rm lib/Makefile.MPW 33rm lib/amigaconfig.h 34rm lib/expat.dsp 35rm lib/expat_static.dsp 36rm lib/expatw.dsp 37rm lib/expatw_static.dsp 38rm lib/libexpat.def 39rm lib/libexpatw.def 40rm lib/macconfig.h 41rm lib/winconfig.h 42rm tests/benchmark/benchmark.dsp 43rm tests/benchmark/benchmark.dsw 44 45rm -rf amiga 46rm -rf bcb5 47rm -rf conftools 48rm -rf m4 49rm -rf vms 50rm -rf win32 51rm -rf xmlwf 52 53echo "Import complete" 54