"Fossies" - the Fresh Open Source Software Archive 
Member "stress-1.0.5/autogen.sh" (2 Oct 2021, 2309 Bytes) of package /linux/privat/old/stress-1.0.5.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
1 #!/bin/sh
2
3 # autogen.sh with clean option
4 # Copyright 2016-2021 Joao Eriberto Mota Filho <eriberto@eriberto.pro.br>
5 #
6 # This file is under BSD-3-Clause license.
7 #
8 # Redistribution and use in source and binary forms, with or without
9 # modification, are permitted provided that the following conditions
10 # are met:
11 # 1. Redistributions of source code must retain the above copyright
12 # notice, this list of conditions and the following disclaimer.
13 # 2. Redistributions in binary form must reproduce the above copyright
14 # notice, this list of conditions and the following disclaimer in the
15 # documentation and/or other materials provided with the distribution.
16 # 3. Neither the name of the authors nor the names of its contributors
17 # may be used to endorse or promote products derived from this software
18 # without specific prior written permission.
19 #
20 # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21 # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 # ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24 # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 # SUCH DAMAGE.
31
32
33 # Use clean option
34 if [ "$1" = "clean" -a ! -e Makefile ]
35 then
36 echo "Vanishing the code"
37 rm -rf aclocal.m4 autom4te.cache compile config.* configure depcomp \
38 doc/Makefile.in INSTALL install-sh Makefile.in missing \
39 src/Makefile.in test-driver test/Makefile.in
40 exit 0
41 fi
42
43 # Do not use clean option
44 if [ "$1" = "clean" -a -e Makefile ]
45 then
46 echo "I can not clean. Use '$ make distclean'."
47 exit 0
48 fi
49
50 # Do autoreconf
51 autoreconf -i \
52 && { echo " "; \
53 echo "Done. You can use the 'clean' option to vanish the source code."; \
54 echo "Example of use: $ ./autogen clean"; \
55 } \
56 || { echo "We have a problem..."; exit 1; }