"Fossies" - the Fresh Open Source Software Archive

Member "sip-0.12.1/config/subst_input_files.sh" (20 Sep 2013, 1630 Bytes) of package /linux/privat/sip-0.12.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "subst_input_files.sh": 0.5.6_vs_0.12.1.

    1 # Script called by libsip_build.sce
    2 # DONT RUN IT DIRECTLY UNLESS YOU KNOW WHAT YOU ARE DOING!!!
    3 
    4 topbuildir='..'
    5 ilib_name=$1
    6 shift
    7 
    8 case `basename $PWD` in
    9 src)
   10     sed "s/%LIBNAME%/$ilib_name.la/g
   11          s/%SRC_FILES%/$*/g
   12           /^#%.*$/d
   13          s/#%.*//g" Makefile.am.input >Makefile.am;;
   14 
   15 #macros)
   16 #  macros_sci=`(cd $topbuildir/macros; ls *.sci)`
   17 #  macros_sci=`echo $macros_sci` # put in jus 1 line
   18 #  macros_bin=`echo $macros_sci | sed 's/\.sci/\.bin/g'`
   19 #  
   20 #  sed "s/%LIBNAME%/$ilib_name.la/g
   21 #      s/%MACROS_SCI%/$macros_sci/g
   22 #      s/%MACROS_BIN%/$macros_bin/g
   23 #      /^#%.*$/d
   24 #       s/#%.*//g" Makefile.am.input >Makefile.am;;
   25 
   26 #images)
   27 #  images=`(cd $topbuildir/images; ls *.jpeg *.jpg *.png *.bmp *.tif* *.jpg *.gif *.xpm) 2>/dev/null`
   28 #  images=`echo $images`
   29 #  sed "s@%IMAGES%@$images@g
   30 #      /^#%.*$/d
   31 #       s/#%.*//g" Makefile.am.input >Makefile.am;;
   32 
   33 #photonics)
   34 #  images=`(cd $topbuildir/images/photonics; ls *.jpeg *.jpg *.png *.bmp *.tif* *.jpg *.gif *.xpm) 2>/dev/null`
   35 #  images=`echo $images`
   36 #  sed "s@%PHOTONIC_IMAGES%@$images@g
   37 #      /^#%.*$/d
   38 #       s/#%.*//g" Makefile.am.input >Makefile.am;;
   39 
   40 man)
   41     manpages=`(cd $topbuildir/man; ls *.xml)`
   42    manpages_xml=`echo $manpages`
   43     manpages_cat=`echo $manpages | sed 's/\.xml/\.cat/g'`
   44     manpages_man=`echo $manpages | sed 's/\.xml/\.man/g'`
   45     manpages_html=`echo $manpages | sed 's/\.xml/\.htm/g'`
   46     sed "s/%LIBNAME%/$ilib_name.la/g
   47           s/%MANPAGES_XML%/$manpages_xml/g
   48           s/%MANPAGES_CAT%/$manpages_cat/g
   49           s/%MANPAGES_MAN%/$manpages_man/g
   50           s/%MANPAGES_HTML%/$manpages_html/g
   51           /^#%.*$/d
   52          s/#%.*//g" Makefile.am.input >Makefile.am;;
   53 esac