~ubuntu-branches/ubuntu/raring/codeblocks/raring-proposed

« back to all changes in this revision

Viewing changes to src/plugins/contrib/wxSmithContribItems/wxthings/wxthings/build/acregen.sh

  • Committer: Bazaar Package Importer
  • Author(s): Cosme Domínguez Díaz
  • Date: 2010-08-09 04:38:38 UTC
  • mfrom: (1.1.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20100809043838-a59ygguym4eg0jgw
Tags: 10.05-0ubuntu1
* New upstream release. Closes (LP: #322350)
 - Switch to dpkg-source 3.0 (quilt) format
 - Remove unneeded README.source
 - Add debian/get-source-orig script that removes all
   Windows prebuilt binaries
* Bump Standards-Version to 3.9.1
 - Stop shipping *.la files
* debian/control
 - Add cdbs package as Build-Depend
 - Add libbz2-dev and zlib1g-dev packages as
   Build-Depends (needed by libhelp_plugin.so)
 - Remove dpatch package of Build-Depends
 - Add codeblocks-contrib-debug package
 - Split architecture-independent files of codeblocks
   package in codeblocks-common package
* debian/rules
 - Switch to CDBS rules system
 - Add parallel build support
 - Add a call to debian/get-source-orig script
 - Use lzma compression (saves 23,5 MB of free space)
* debian/patches
 - Refresh 01_codeblocks_plugin_path
 - Add 02_no_Makefiles_in_debian_dir to remove any link
   in codeblocks build system to deleted Makefiles of debian directory
 - Drop 02_ftbfs_gcc44 and 03_ftbfs_glib221 (merged in upstream)
* debian/watch
 - Update to use the new host (berlios.de)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
#
3
 
# Author: Francesco Montorsi
4
 
# RCS-ID: $Id: acregen.sh 3904 2007-04-28 19:48:09Z byo $
5
 
# Creation date: 14/9/2005
6
 
#
7
 
# A simple script to generate the configure script for a wxCode component
8
 
# Some features of this version:
9
 
# - automatic test for aclocal version
10
 
# - able to be called from any folder
11
 
#   (i.e. you can call it typing 'build/acregen.sh', not only './acregen.sh')
12
 
 
13
 
 
14
 
# called when an old version of aclocal is found
15
 
function aclocalold()
16
 
{
17
 
    echo "Your aclocal version is  $aclocal_maj.$aclocal_min.$aclocal_rel"
18
 
    echo "Your automake installation is too old; please install automake >= $aclocal_minimal_maj.$aclocal_minimal_min.$aclocal_minimal_rel"
19
 
    echo "You can download automake from ftp://sources.redhat.com/pub/automake/"
20
 
    exit 1
21
 
}
22
 
 
23
 
# first check if we have an ACLOCAL version recent enough
24
 
aclocal_verfull=$(aclocal --version)
25
 
aclocal_maj=`echo $aclocal_verfull | sed 's/aclocal (GNU automake) \([0-9]*\).\([0-9]*\).\([0-9]*\).*/\1/'`
26
 
aclocal_min=`echo $aclocal_verfull | sed 's/aclocal (GNU automake) \([0-9]*\).\([0-9]*\).\([0-9]*\).*/\2/'`
27
 
aclocal_rel=`echo $aclocal_verfull | sed 's/aclocal (GNU automake) \([0-9]*\).\([0-9]*\).\([0-9]*\).*/\3/'`
28
 
 
29
 
aclocal_minimal_maj=1
30
 
aclocal_minimal_min=9
31
 
aclocal_minimal_rel=6
32
 
 
33
 
majok=$(expr $aclocal_maj \>= $aclocal_minimal_maj)
34
 
minok=$(expr $aclocal_min \>= $aclocal_minimal_min)
35
 
relok=$(expr $aclocal_rel \>= $aclocal_minimal_rel)
36
 
 
37
 
if [[ "$majok" = "0" ]]; then aclocalold; fi
38
 
if [[ "$majok" = "1" && "$minok" = "0" ]]; then aclocalold; fi
39
 
if [[ "$majok" = "1" && "$minok" = "1" && "$relok" = 0 ]]; then aclocalold; fi
40
 
 
41
 
# we can safely proceed
42
 
me=$(basename $0)
43
 
path=${0%%/$me}        # path from which the script has been launched
44
 
current=$(pwd)
45
 
cd $path
46
 
aclocal && autoconf && mv configure ..
47
 
cd $current