forked from atompaw/atompaw
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwipeout.sh
More file actions
executable file
·63 lines (56 loc) · 1.9 KB
/
wipeout.sh
File metadata and controls
executable file
·63 lines (56 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/sh
#
# Copyright (C) 2010 Yann Pouillon
#
# This file is part of the AtomPAW software package. For license information,
# please see the COPYING file in the top-level directory of the source
# distribution.
#
#
# IMPORTANT NOTE:
#
# For maintainer use only!
#
# PLEASE DO NOT EDIT THIS FILE, AS IT COULD CAUSE A SERIOUS LOSS OF DATA.
# *** YOU HAVE BEEN WARNED! ***
#
# Check that we are in the right directory
if test ! -s "./configure.ac" -o ! -s "src/atompaw_prog.F90"; then
echo "wipeout: Cowardly refusing to remove something from here!"
exit 1
fi
# Remove temporary directories and files
echo "Removing temporary directories and files..."
rm -rf tmp*
find . -depth -name 'tmp-*' -exec rm -rf {} \;
find src -name '*.~[0-9]~' -exec rm -f {} \;
echo "done."
# Remove autotools files
echo "Removing autotools files..."
find src -depth -name '.deps' -exec rm -rf {} \;
find src -depth -name '.libs' -exec rm -rf {} \;
rm -f core config.log config.status stamp-h1 config.h config.h.in*
rm -rf aclocal.m4 autom4te.cache configure confstat*
(cd config/gnu && rm -f config.guess config.sub depcomp install-sh ltmain.sh missing)
(cd config/m4 && rm -f libtool.m4 ltoptions.m4 ltsugar.m4 ltversion.m4 lt~obsolete.m4)
echo "done."
# Remove Makefiles and machine-generated files
echo "Removing files produced by the configure script..."
rm -f libtool
find . -name Makefile -exec rm {} \;
find . -name Makefile.in -exec rm {} \;
rm -f src/pkginfo.f90
echo "done."
# Remove object files, libraries and programs
echo "Removing object files, libraries and programs..."
rm -f src/atompaw
rm -f src/graphatom
find src -name '*.la' -o -name '*.lo' -exec rm {} \;
find src -name '*.a' -o -name '*.o' -exec rm {} \;
find src -name '*.mod' -exec rm {} \;
echo "done."
# Remove distribution files
echo "Removing distribution files..."
chmod -Rf u+w atompaw-[0-9].[0-9].[0-9]* > /dev/null 2>&1
rm -rf atompaw-[0-9].[0-9].[0-9]*
echo "done."