OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [bootstrap] - Blame information for rev 624

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
#!/bin/sh
2
#
3
# helps bootstrapping, when checked out from CVS
4
# requires GNU autoconf and GNU automake
5
#
6
# $Id: bootstrap,v 1.2 2001-09-27 11:59:04 chris Exp $
7
 
8
# this is not meant to be exported outside the source tree
9
 
10
# NOTE: Inspired by libtool's autogen script
11
 
12
# to be run from the toplevel directory of RTEMS'
13
# source tree
14
 
15
progname=`basename $0`
16
top_srcdir=`dirname $0`
17
 
18
verbose="";
19
quiet="false"
20
mode="generate"
21
 
22
usage()
23
{
24
  echo
25
  echo "usage: ${progname} [-h|-q|-v]"
26
  echo
27
  echo "options:"
28
  echo "        -h .. display this message and exit";
29
  echo "        -q .. quiet, don't display directories";
30
  echo "        -v .. verbose, pass -v to automake when invoking automake"
31
  echo "        -c .. clean, remove all aclocal/autoconf/automake generated files"
32
  echo
33
  exit 1;
34
}
35
 
36
if test ! -f $top_srcdir/VERSION; then
37
  echo "${progname}:"
38
  echo "        Installation problem: Can't find file VERSION"
39
  exit 1;
40
fi
41
 
42
while test $# -gt 0; do
43
case $1 in
44
-h|--he|--hel|--help)
45
  usage ;;
46
-q|--qu|--qui|--quie|--quiet)
47
  quiet="true";
48
  shift;;
49
-v|--ve|--ver|--verb|--verbo|--verbos|--verbose)
50
  verbose="-v";
51
  shift;;
52
-c|--cl|--cle|--clea|--clean)
53
  mode="clean";
54
  shift;;
55
-*) echo "unknown option $1" ;
56
  usage ;;
57
*) echo "invalid parameter $1" ;
58
  usage ;;
59
esac
60
done
61
 
62
case $mode in
63
generate)
64
 
65
  case $top_srcdir in
66
  /* ) aclocal_dir=$top_srcdir/aclocal
67
    ;;
68
  *) aclocal_dir=`pwd`/$top_srcdir/aclocal
69
    ;;
70
  esac
71
 
72
  confs=`find . -name 'configure.in' -print`
73
  for i in $confs; do
74
  dir=`dirname $i`;
75
  ( test "$quiet" = "true" || echo "$dir";
76
    cd $dir;
77
    aclocal -I $aclocal_dir;
78
    autoconf;
79
    test -n "`grep CONFIG_HEADER configure.in`" && autoheader ;
80
    test -f Makefile.am && automake $verbose ;
81
    test -f Makefile.am && test -n "`grep 'stamp-h\.in' Makefile.in`" \
82
      && echo timestamp > stamp-h.in
83
  )
84
  done
85
  ;;
86
 
87
clean)
88
  test "$quiet" = "true" || echo "removing automake generated Makefile.in files"
89
  files=`find . -name 'Makefile.am' -print | sed -e 's%\.am%\.in%g'` ;
90
  for i in $files; do if test -f $i; then
91
    rm -f $i
92
    test "$verbose" = "-v" && echo "$i"
93
  fi; done
94
 
95
  test "$quiet" = "true" || echo "removing configure files"
96
  files=`find . -name 'configure' -print` ;
97
  test "$verbose" = "-v" && test -n "$files" && echo "$files" ;
98
  for i in $files; do if test -f $i; then
99
    rm -f $i
100
    test "$verbose" = "-v" && echo "$i"
101
  fi; done
102
 
103
  test "$quiet" = "true" || echo "removing aclocal.m4 files"
104
  files=`find . -name 'aclocal.m4' -print` ;
105
  test "$verbose" = "-v" && test -n "$files" && echo "$files" ;
106
  for i in $files; do if test -f $i; then
107
    rm -f $i
108
    test "$verbose" = "-v" && echo "$i"
109
  fi; done
110
 
111
  find . -name '*~' -print | xargs rm -f
112
  find . -name '*.orig' -print | xargs rm -f
113
  find . -name '*.rej' -print | xargs rm -f
114
  find . -name 'config.status' -print | xargs rm -f
115
  find . -name 'config.log' -print | xargs rm -f
116
  find . -name 'config.cache' -print | xargs rm -f
117
  find . -name 'Makefile' -print | xargs rm -f
118
  find . -name '.deps' -print | xargs rm -rf
119
  find . -name '.libs' -print | xargs rm -rf
120
  find . -name 'stamp-h.in' | xargs rm -rf
121
  ;;
122
esac

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.