Changeset 0b5c029 in rtems-graphics-toolkit


Ignore:
Timestamp:
Dec 28, 2013, 4:22:08 PM (5 years ago)
Author:
Chirayu Desai <cdesai@…>
Branches:
master
Parents:
8882c04
git-author:
Chirayu Desai <cdesai@…> (12/28/13 16:22:08)
git-committer:
Joel Sherrill <joel.sherrill@…> (11/23/14 15:41:49)
Message:

do_it: Add a build-only option

  • Allows building the libraries, and skipping installation
File:
1 edited

Legend:

Unmodified
Added
Removed
  • do_it

    r8882c04 r0b5c029  
    4646# Are we noisy when running?
    4747verbose="no"
     48
     49# Do we install what we built?
     50do_install=true
    4851######################## Parse arguments ###########################
    4952
     
    5356do_it [options]
    5457  -A - build and install all libraries
     58  -a - build all libraries
    5559  -j - build JPEG support (default=no)
    5660  -p - build PNG support (default=no)
     
    6266  -f - build FLTK support (default=no)
    6367  -c - clean after building (default=no)
     68  -b - build only, do not install libraries (default=no)
    6469  -s - use sudo for make install (default=no)
    6570  -v - verbose
     
    97102}
    98103
    99 while getopts Ajpt1Tnxfcsv OPT
     104while getopts Aajpt1Tnxfbcsv OPT
    100105do
    101106    case "$OPT" in
     
    106111         do_ttf="yes"
    107112         do_nanox="yes"
    108          do_nxlib="yes"
    109          do_fltk="yes"
     113         do_nxlib="yes"
     114         do_fltk="yes"
     115         ;;
     116      a) do_jpeg="yes"
     117         do_png="yes"
     118         do_tiff="yes"
     119         do_t1="yes"
     120         do_ttf="yes"
     121         do_nanox="yes"
     122         do_nxlib="yes"
     123         do_fltk="yes"
     124         do_install=false
    110125         ;;
    111126      j) do_jpeg=`toggle ${do_jpeg}` ;;
     
    117132      x) do_nxlib=`toggle ${do_nxlib}` ;;
    118133      f) do_fltk=`toggle ${do_fltk}` ;;
     134      b) do_install=false ;;
    119135      c) do_clean=`toggle ${do_clean}` ;;
    120136      s) use_sudo=`toggle ${use_sudo}` ;;
     
    150166  echo ""
    151167  echo "Clean after install             : " ${do_clean}
     168  echo "Install                         : " ${do_install}
    152169  echo ""
    153170fi
     
    211228PREFIX=${BSPTOP}
    212229
    213 if [ ${verbose} = yes ] ; then
     230if [ ${verbose} = yes ] && $do_install ; then
    214231  echo "USING ${PREFIX} for install point!!!"
    215232fi
     
    254271  check_status $? Could not make ${LIBJPEG}
    255272
    256   ${sudo_cmd}  make install
    257   check_status $? Could not make install ${LIBJPEG}
     273  if ${do_install} ; then
     274    ${sudo_cmd}  make install
     275    check_status $? Could not make install ${LIBJPEG}
     276  fi
    258277
    259278  if [ ${do_clean} = yes ] ; then
     
    290309  check_status $? Could not make ${LIBPNG}
    291310
    292   ${sudo_cmd}  make install
    293   check_status $? Could not make install ${LIBPNG}
     311  if ${do_install} ; then
     312    ${sudo_cmd}  make install
     313    check_status $? Could not make install ${LIBPNG}
     314  fi
    294315
    295316  if [ ${do_clean} = yes ] ; then
     
    325346  check_status $? Could not make ${TIFFLIB}
    326347
    327   ${sudo_cmd}  make install
    328   check_status $? Could not make install ${TIFFLIB}
     348  if ${do_install} ; then
     349    ${sudo_cmd}  make install
     350    check_status $? Could not make install ${TIFFLIB}
     351  fi
    329352
    330353  if [ ${do_clean} = yes ] ; then
     
    364387  check_status $? Could not make ${T1LIB}
    365388
    366   ${sudo_cmd}  make install
    367   check_status $? Could not make install ${T1LIB}
     389  if ${do_install} ; then
     390    ${sudo_cmd}  make install
     391    check_status $? Could not make install ${T1LIB}
     392  fi
    368393
    369394  if [ ${do_clean} = yes ] ; then
     
    399424  check_status $? Could not make ${FREETYPE}
    400425
    401   ${sudo_cmd}  make install
    402   check_status $? Could not make install ${FREETYPE}
     426  if ${do_install} ; then
     427    ${sudo_cmd}  make install
     428    check_status $? Could not make install ${FREETYPE}
     429  fi
    403430
    404431  if [ ${do_clean} = yes ] ; then
     
    434461  check_status $? Could not make ${NANOX}
    435462
    436   ${sudo_cmd}  make -f Makefile.rtems CONFIG=`pwd`/Configs/config.rtems install
    437   check_status $? Could not make install ${NANOX}
     463  if ${do_install} ; then
     464    ${sudo_cmd}  make -f Makefile.rtems CONFIG=`pwd`/Configs/config.rtems install
     465    check_status $? Could not make install ${NANOX}
     466  fi
    438467
    439468  if [ ${do_clean} = yes ] ; then
     
    472501  check_status $? Could not make ${NXLIB}
    473502
    474   ${sudo_cmd}  make -f Makefile.rtems install
    475   check_status $? Could not make install ${NXLIB}
     503  if ${do_install} ; then
     504    ${sudo_cmd}  make -f Makefile.rtems install
     505    check_status $? Could not make install ${NXLIB}
     506  fi
    476507
    477508  if [ ${do_clean} = yes ] ; then
     
    516547  check_status $? Could not make ${FLTK}
    517548
    518   ${sudo_cmd}  make install
    519   check_status $? Could not make install ${FLTK}
     549  if ${do_install} ; then
     550    ${sudo_cmd}  make install
     551    check_status $? Could not make install ${FLTK}
     552  fi
    520553
    521554  if [ ${do_clean} = yes ] ; then
Note: See TracChangeset for help on using the changeset viewer.