1#!/bin/sh
2#
3# Copyright by The HDF Group.
4# All rights reserved.
5#
6# This file is part of HDF5. The full HDF5 copyright notice, including
7# terms governing use, modification, and redistribution, is contained in
8# the COPYING file, which can be found at the root of the source code
9# distribution tree, or in https://support.hdfgroup.org/ftp/HDF5/releases.
10# If you do not have access to either file, you may request a copy from
11# help@hdfgroup.org.
12#
13
14# A script to clean up the action of autogen.sh
15#
16# If this script fails to clean up generated files on a particular
17# platform, please contact help@hdfgroup.org or comment on the forum.
18
19echo
20echo "*******************************"
21echo "* HDF5 autogen.sh undo script *"
22echo "*******************************"
23echo
24
25echo "Remove autom4te.cache directory"
26rm -rf autom4te.cache
27
28echo "Remove configure script"
29rm -f configure
30
31echo "Remove Makefile.in files"
32find . -type f -name 'Makefile.in' -exec rm {} \;
33
34echo "Remove files generated by libtoolize"
35rm -f bin/ltmain.sh
36rm -f m4/libtool.m4
37rm -f m4/ltoptions.m4
38rm -f m4/ltsugar.m4
39rm -f m4/ltversion.m4
40rm -f m4/lt~obsolete.m4
41
42echo "Remove files generated by automake"
43rm -f bin/compile
44rm -f bin/config.guess
45rm -f bin/config.sub
46rm -f bin/install-sh
47rm -f bin/missing
48rm -f bin/test-driver
49rm -f bin/depcomp
50
51echo "Remove files generated by bin/make_err"
52rm -f src/H5Epubgen.h
53rm -f src/H5Einit.h
54rm -f src/H5Eterm.h
55rm -f src/H5Edefin.h
56
57echo "Remove files generated by bin/make_vers"
58rm -f src/H5version.h
59
60echo "Remove files generated by bin/make_overflow"
61rm -f src/H5overflow.h
62
63echo "Remove remaining generated files"
64rm -f aclocal.m4
65
66