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 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
|
#! /bin/bash
# Quickplot - an interactive 2D plotter
#
# Copyright (C) 1998-2011 Lance Arsenault
# This file is part of Quickplot.
#
# Quickplot is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published
# by the Free Software Foundation, either version 3 of the License,
# or (at your option) any later version.
#
# Quickplot is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Quickplot. If not, see <http://www.gnu.org/licenses/>.
#
######################################################################
# This script removes all auto generated file. If you don't have the
# tools needed in your PATH to regenerate the auto generated files
# this script will not do anything, or so it tries.
# This will not remove any of your extra development cruft files
# like joes_configure.bash which you may need but will not go in the
# repository. Distribution files are not removed either.
d=$(echo "$0"|sed 's/[^/]*$//')
[ -z "$d" ] && d='.'
if [ "$(cd "$d" 2>/dev/null && echo "${PWD}")" != "${PWD}" ]
then
echo "This script ($0) must be executed directly\
from the top $0 source directory."
exit 1
fi
# This is not a complete list but if they have them
# they will likely have any others that are needed.
progs="svn svnversion lynx convert autoconf automake sed grep awk bash diff"
inst=
for prog in $progs ; do
if ! which $prog &> /dev/null ; then
echo " $prog is not installed in your PATH"
inst="$inst $prog"
fi
done
if [ -n "$inst" ] ; then
echo
echo " You need to have the following installed to run this:"
echo
echo " $inst"
echo
echo " or else you will not be able to recreate the files that"
echo " running this removes."
exit 1
fi
###################################################################
set -x
# generated directories
rm -rf .deps .libs conftest.dir autom4te.cache m4
rm -f *.o *.la *.so *.lo
rm -f\
aclocal.m4 config.cache config.h install-sh config.log\
Makefile Makefile.in missing mkinstalldirs ltmain.sh\
config.sub config.guess configure\
configure.scan autoscan-*x.log INSTALL\
libtool config.status autoscan.log depcomp confdefs.h
rm -f config.h* stamp-h* compile\
quickplot *.xpm *.txt REPO_VERSION RELEASE_DATE paths.h\
*.htm _ScreenShot_*_thumb.png _ScreenShot_*_thumb-*.png\
about.html help.html index.html screenshots.html\
config.h.in config.h mk_options quickplot.pc\
quickplot.1.head quickplot.1.tail quickplot.1
# generated source files
rm -f parse_args.h app_op_declare.h app_op_init.h
|