Changeset 62bfc79 in rtems-testing


Ignore:
Timestamp:
May 14, 2015, 5:33:32 PM (4 years ago)
Author:
Gedare Bloom <gedare@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
8a18d25
Parents:
0dd40d0
Message:

release.sh: refactor checks for executable dependencies

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release-helpers/release.sh

    r0dd40d0 r62bfc79  
    7878}
    7979
     80check_dep()
     81{
     82  type $1 > /dev/null 2>&1
     83  check_error $? "$1 is not in your PATH"
     84}
     85
    8086#  Set up variables which control the scripts behavior
    8187verbose=yes
     
    100106check_error $? "Not at the top of an RTEMS tree"
    101107
    102 type sb-bootstrap >/dev/null 2>&1
    103 check_error $? "sb-bootstrap is not in your PATH"
    104 
    105 type doxygen > /dev/null 2>&1
    106 check_error $? "doxygen is not in your PATH"
    107 
    108 type mscgen > /dev/null 2>&1
    109 check_error $? "mscgen is not in your PATH"
     108check_dep sb-bootstrap
     109check_dep doxygen
     110check_dep mscgen
    110111
    111112if [ ${bump_dot_release} = "no" -a ${bump_major_version} = "no" ] ; then
     
    169170  # We need to have access to various texi tools to build documentation
    170171  # For CentOS, the RPMs are texinfo-tex and texi2html
    171   type texi2dvi >/dev/null 2>&1
    172   check_error $? "texi2dvi is not in your PATH"
    173   type texi2pdf >/dev/null 2>&1
    174   check_error $? "texi2pdf is not in your PATH"
     172  check_dep texi2dvi
     173  check_dep texi2pdf
    175174  # main tool varies based on texinfo version
    176175  type texi2any >/dev/null 2>&1
     
    182181
    183182  # We need to have access to SPARC tools to build Doxygen.
    184   type sparc-rtems${MAJOR}-gcc >/dev/null 2>&1
    185   check_error $? "sparc-rtems${MAJOR}-gcc is not in your PATH"
     183  check_dep sparc-rtems${MAJOR}-gcc
    186184fi
    187185
Note: See TracChangeset for help on using the changeset viewer.