File: setup.sh

package info (click to toggle)
tidy 20080116cvs-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 7,296 kB
  • ctags: 3,259
  • sloc: ansic: 30,069; sh: 9,060; xml: 317; makefile: 41
file content (56 lines) | stat: -rw-r--r-- 1,470 bytes parent folder | download | duplicates (10)
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
#!/bin/sh

if ! test -f build/gnuauto/setup.sh; then

   echo ""
   echo "* * * Execute this script from the top source directory, e.g.:"
   echo ""
   echo "	$ /bin/sh build/gnuauto/setup.sh"
   echo ""

else

   for i in libtoolize glibtoolize 
   do 
      ( $i --version) < /dev/null > /dev/null 2>&1 && 
      LIBTOOLIZE=$i 
   done 
   if test -z "$LIBTOOLIZE" ; then 
      echo "You need libtoolize to continue" 
      exit 1; 
   fi
   top_srcdir=`pwd`
   echo ""
   echo "Generating the build system in $top_srcdir"
   echo ""
   echo "copying files into place: cd build/gnuauto && cp -R -f * $top_srcdir"
   (cd build/gnuauto && cp -R -f * $top_srcdir)
   echo "running: $LIBTOOLIZE --force --copy"
   $LIBTOOLIZE --force --copy
   echo "running: aclocal"
   aclocal
   echo "running: automake -a -c --foreign"
   automake -a -c --foreign
   echo "running: autoconf"
   autoconf
   echo ""
   echo "If the above commands were successful you should now be able"
   echo "to build in the usual way:"
   echo ""
   echo "	$ ./configure --prefix=/usr"
   echo "	$ make"
   echo "	$ make install"
   echo ""
   echo "to get a list of configure options type: ./configure --help"
   echo ""
   echo "Alternatively, you should be able to build outside of the source"
   echo "tree. e.g.:"
   echo ""
   echo "	$ mkdir ../build-tidy"
   echo "	$ cd ../build-tidy"
   echo "	$ ../tidy/configure --prefix=/usr"
   echo "	$ make"
   echo "	$ make install"
   echo ""

fi