autogen.sh
changeset 0 43e43bf23a7a
equal deleted inserted replaced
-1:000000000000 0:43e43bf23a7a
       
     1 #!/bin/sh
       
     2 
       
     3 error_msg () {
       
     4     printf "%s\n" "$@" >&2
       
     5 }
       
     6 
       
     7 if [ ! -f ./data/openindiana-backgrounds.xml.in.in ]; then
       
     8     error_msg "this script must be executed from the root directory of the openindiana-welcome distribution"
       
     9     exit 1
       
    10 fi
       
    11 
       
    12 if ! gettext_version="$(autopoint --version 2>/dev/null | head -1)"; then
       
    13     error_msg "autopoint not found, please install gettext and ensure that autopoint is in PATH"
       
    14     exit 1
       
    15 fi
       
    16 
       
    17 if ! intltool_version="$(intltoolize --version 2>/dev/null | head -1)"; then
       
    18     error_msg "intltoolize not found, please install intltool and ensure that intltoolize is in PATH"
       
    19     exit 1
       
    20 fi
       
    21 
       
    22 if ! autoconf_version="$(autoconf --version 2>/dev/null | head -1)"; then
       
    23     error_msg "autoconf not found, please install autoconf and ensure that autoconf is in PATH"
       
    24     exit 1
       
    25 fi
       
    26 
       
    27 if ! autoheader_version="$(autoheader --version 2>/dev/null | head -1)"; then
       
    28     error_msg "autoheader not found, please install autoheader and ensure that autoheader is in PATH"
       
    29     exit 1
       
    30 fi
       
    31 
       
    32 if ! automake_version="$(automake --version 2>/dev/null | head -1)"; then
       
    33     error_msg "automake not found, please install automake and ensure that automake is in PATH"
       
    34     exit 1
       
    35 fi
       
    36 
       
    37 cat <<EOF
       
    38         Buildsystem summary
       
    39         ===================
       
    40 
       
    41         Gettext:        $gettext_version
       
    42         Intltool:       $intltool_version
       
    43         Autoconf:       $autoconf_version
       
    44         Autoheader:     $autoheader_version
       
    45         Automake:       $automake_version
       
    46 
       
    47 EOF
       
    48 
       
    49 set -e
       
    50 autopoint --force $AP_OPTS
       
    51 intltoolize --force --copy --automake
       
    52 aclocal -I m4 --install $AL_OPTS
       
    53 autoconf $AC_OPTS
       
    54 autoheader $AH_OPTS
       
    55 automake --add-missing --copy $AM_OPTS
       
    56