File: cleanup.sh

package info (click to toggle)
form 4.2.1%2Bgit20200217-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 5,500 kB
  • sloc: ansic: 101,613; cpp: 9,375; sh: 1,582; makefile: 505
file content (33 lines) | stat: -rwxr-xr-x 603 bytes parent folder | download | duplicates (3)
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
#!/bin/sh

# This shell script deletes files that are created by autoreconf,
# e.g. aclocal.m4.

# It is NO replacement for the cleanup done by "make clean",
# "make distclean", or "make maintainer-clean".

FILES="\
Makefile.in \
aclocal.m4 \
build-aux/ \
config.h.in \
config.h.in~ \
configure \
check/Makefile.in \
doc/Makefile.in \
doc/devref/Makefile.in \
doc/doxygen/Makefile.in \
doc/manual/Makefile.in \
sources/Makefile.in \
"

echo "Deleting $FILES"
echo -n "Okay (y/n) : "
read answer

if [ x"$answer" == "xy" -o x"$answer" == "xY" ]
then
    rm -fr $FILES
else
	echo "Exit. No deletions."
fi