blob: 17eaf9e042c3ce12bcb130d8b74bb3d33d11bdd2 [file] [log] [blame]
Brian Carlstrom94bdc612013-05-03 09:55:54 -07001#!/bin/sh
2
3set -e
4
5if [ "$1" = "" ]; then
Teow Wan Yee19df1792016-10-19 16:18:01 +08006 echo "usage: $0 expat.tar.bz2"
Brian Carlstrom94bdc612013-05-03 09:55:54 -07007 exit 1
8fi
9
10echo "Extracting $1"
Teow Wan Yee19df1792016-10-19 16:18:01 +080011tar --extract --bzip2 --strip-components=1 --file $1
Brian Carlstrom94bdc612013-05-03 09:55:54 -070012
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
Teow Wan Yee19df1792016-10-19 16:18:01 +080025rm configure.ac
Brian Carlstrom94bdc612013-05-03 09:55:54 -070026rm 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"