~ubuntu-branches/ubuntu/vivid/tidy/vivid-updates

« back to all changes in this revision

Viewing changes to build/gnuauto/setup.sh

  • Committer: Bazaar Package Importer
  • Author(s): Jason Thomas
  • Date: 2008-01-20 21:46:03 UTC
  • mfrom: (0.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20080120214603-oqicq5jwr1exrm55
Tags: 20080116cvs-2
* debian/control: build depends on xsltproc
  (closes: #461608)
* debian/tidy.preinst,postinst: add code to move old config file
  (closes: #461623)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
 
3
 
if ! test -f build/gnuauto/setup.sh; then
4
 
 
5
 
   echo ""
6
 
   echo "* * * Execute this script from the top source directory, e.g.:"
7
 
   echo ""
8
 
   echo "       $ /bin/sh build/gnuauto/setup.sh"
9
 
   echo ""
10
 
 
11
 
else
12
 
 
13
 
   for i in libtoolize glibtoolize 
14
 
   do 
15
 
      ( $i --version) < /dev/null > /dev/null 2>&1 && 
16
 
      LIBTOOLIZE=$i 
17
 
   done 
18
 
   if test -z "$LIBTOOLIZE" ; then 
19
 
      echo "You need libtoolize to continue" 
20
 
      exit 1; 
21
 
   fi
22
 
   top_srcdir=`pwd`
23
 
   echo ""
24
 
   echo "Generating the build system in $top_srcdir"
25
 
   echo ""
26
 
   echo "copying files into place: cd build/gnuauto && cp -R -f * $top_srcdir"
27
 
   (cd build/gnuauto && cp -R -f * $top_srcdir)
28
 
   echo "running: $LIBTOOLIZE --force --copy"
29
 
   $LIBTOOLIZE --force --copy
30
 
   echo "running: aclocal"
31
 
   aclocal
32
 
   echo "running: automake -a -c --foreign"
33
 
   automake -a -c --foreign
34
 
   echo "running: autoconf"
35
 
   autoconf
36
 
   echo ""
37
 
   echo "If the above commands were successful you should now be able"
38
 
   echo "to build in the usual way:"
39
 
   echo ""
40
 
   echo "       $ ./configure --prefix=/usr"
41
 
   echo "       $ make"
42
 
   echo "       $ make install"
43
 
   echo ""
44
 
   echo "to get a list of configure options type: ./configure --help"
45
 
   echo ""
46
 
   echo "Alternatively, you should be able to build outside of the source"
47
 
   echo "tree. e.g.:"
48
 
   echo ""
49
 
   echo "       $ mkdir ../build-tidy"
50
 
   echo "       $ cd ../build-tidy"
51
 
   echo "       $ ../tidy/configure --prefix=/usr"
52
 
   echo "       $ make"
53
 
   echo "       $ make install"
54
 
   echo ""
55
 
 
56
 
fi