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