"Fossies" - the Fresh Open Source Software Archive

Member "gretl-2020b/win32/windist/install-runtime-gtk3.sh.in" (7 Apr 2020, 4455 Bytes) of package /linux/misc/gretl-2020b.tar.xz:


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 last Fossies "Diffs" side-by-side code changes report for "install-runtime-gtk3.sh.in": 2020a_vs_2020b.

    1 #!/bin/sh
    2 
    3 # these first paths may need configuring
    4 TARGET=@prefix@
    5 SRCDIR=@top_srcdir@
    6 
    7 # and set this to "no" if you don't want to install pre-built
    8 # gnuplot from the server
    9 INSTALL_GNUPLOT="yes"
   10 
   11 # nothing below here should need configuring
   12 
   13 SERVERDIR="http://ricardo.ecn.wfu.edu/pub/gretl/winbuild"
   14 SYSBASE=${MINGW_PREFIX}
   15 SYSBIN=${SYSBASE}/bin
   16 SYSTRANS=${SYSBASE}/share/locale
   17 SYSTHEME=${SYSBASE}/share/themes
   18 SYSICONS=${SYSBASE}/share/icons
   19 SYSSV=${SYSBASE}/share/gtksourceview-3.0
   20 
   21 # create required GTK-related directories not created by "make install"
   22 mkdir -p ${TARGET}/share/themes/Emacs/gtk-3.0
   23 mkdir -p ${TARGET}/share/themes/Default/gtk-3.0
   24 mkdir -p ${TARGET}/share/themes/Adwaita/gtk-3.0
   25 mkdir -p ${TARGET}/share/themes/icons
   26 # ?? mkdir -p ${TARGET}/share/themes/MS-Windows/gtk-3.0
   27 # not sure how many of the following are wanted
   28 mkdir -p ${TARGET}/lib/gtk-3.0/3.0.0
   29 mkdir -p ${TARGET}/lib/gtk-3.0/modules
   30 mkdir -p ${TARGET}/lib/gtk-3.0/3.0.0/printbackends
   31 mkdir -p ${TARGET}/lib/gtk-3.0/3.0.0/theming-engines
   32 
   33 # enable Windows look and feel
   34 mkdir -p ${TARGET}/etc
   35 mkdir -p ${TARGET}/etc/gtk-3.0
   36 cp ${SRCDIR}/win32/windist/settings.ini ${TARGET}/etc/gtk-3.0/settings.ini
   37 
   38 # create Glib schema directory and copy files in
   39 mkdir -p ${TARGET}/share/glib-2.0/schemas
   40 for f in org.gtk.Settings.ColorChooser.gschema.xml \
   41   org.gtk.Settings.FileChooser.gschema.xml gschemas.compiled ; do
   42   cp ${SYSBASE}/share/glib-2.0/schemas/$f ${TARGET}/share/glib-2.0/schemas
   43 done
   44 
   45 # directories to hold GTK message catalogs
   46 LANGS=`cat ${SRCDIR}/po/LINGUAS | grep -v ^#`
   47 for lang in $LANGS ; do
   48   mkdir -p ${TARGET}/share/locale/$lang/LC_MESSAGES
   49 done
   50 
   51 # copy in third-party dlls not detected by ldd: this listing
   52 # may need correction for GTK 3
   53 for f in \
   54     libcairo-gobject-2.dll \
   55     libgailutil-3-0.dll \
   56     libgthread-2.0-0.dll \
   57     libjson-glib-1.0-0.dll
   58 do
   59     cp ${SYSBIN}/$f ${TARGET}/$f
   60 done
   61 
   62 # make list of ldd-detected DLL dependencies...
   63 ldd ${TARGET}/gretl.exe | grep -vi /c/windows > dlls.tmp
   64 ldd ${TARGET}/gretlcli.exe | grep -vi /c/windows >> dlls.tmp
   65 cat dlls.tmp | awk '{print $1}' | sort | uniq | \
   66   grep -v libgretl | grep -v '?' > dlls.txt && rm dlls.tmp
   67 # and copy them in
   68 for f in `cat dlls.txt` ; do
   69   cp ${SYSBIN}/$f ${TARGET}/$f
   70 done
   71 
   72 # gdk-pixbuf loaders
   73 cp -r ${SYSBASE}/lib/gdk-pixbuf-2.0 ${TARGET}/lib
   74 
   75 # misc file
   76 cp ${SRCDIR}/win32/gretl_website.url ${TARGET}/gretl_website.url
   77 
   78 # gnuplot -- unless you're building it yourself
   79 if [ "x${INSTALL_GNUPLOT}" = "xyes" ] ; then
   80   if [ "$MSYSTEM_CARCH" = "x86_64" ] ; then
   81     GPTGZ=gp524w64.tar.gz
   82   else
   83     GPTGZ=gp524w32.tar.gz
   84   fi
   85   cd ${TARGET} && wget -N ${SERVERDIR}/${GPTGZ} && tar xvf ${GPTGZ} && rm ${GPTGZ}
   86 fi
   87 
   88 # GTK theme files
   89 cp $SYSTHEME/Emacs/gtk-3.0/gtk-keys.css ${TARGET}/share/themes/Emacs/gtk-3.0/gtk-keys.css
   90 cp $SYSTHEME/Default/gtk-3.0/gtk-keys.css ${TARGET}/share/themes/Default/gtk-3.0/gtk-keys.css
   91 
   92 # GTK icons (check details!)
   93 # cp $SYSICONS/*.* ${TARGET}/share/icons/
   94 
   95 # data files for gtksourceview, other than the gretl-special ones
   96 cp ${SYSSV}/language-specs/R.lang ${TARGET}/gtksourceview/R.lang
   97 cp ${SYSSV}/language-specs/cpp.lang ${TARGET}/gtksourceview/cpp.lang
   98 cp ${SYSSV}/language-specs/octave.lang ${TARGET}/gtksourceview/octave.lang
   99 cp ${SYSSV}/language-specs/python.lang ${TARGET}/gtksourceview/python.lang
  100 cp ${SYSSV}/language-specs/def.lang ${TARGET}/gtksourceview/def.lang
  101 cp ${SYSSV}/language-specs/c.lang ${TARGET}/gtksourceview/c.lang
  102 cp ${SYSSV}/language-specs/gtk-doc.lang ${TARGET}/gtksourceview/gtk-doc.lang
  103 cp ${SYSSV}/language-specs/language2.rng ${TARGET}/gtksourceview/language2.rng
  104 cp ${SYSSV}/styles/classic.xml ${TARGET}/gtksourceview/classic.xml
  105 cp ${SYSSV}/styles/cobalt.xml ${TARGET}/gtksourceview/cobalt.xml
  106 cp ${SYSSV}/styles/kate.xml ${TARGET}/gtksourceview/kate.xml
  107 cp ${SYSSV}/styles/oblivion.xml ${TARGET}/gtksourceview/oblivion.xml
  108 cp ${SYSSV}/styles/tango.xml ${TARGET}/gtksourceview/tango.xml
  109 cp ${SYSSV}/styles/styles.rng ${TARGET}/gtksourceview/styles.rng
  110 
  111 # locale file, certs for cURL, libsvm copyright
  112 cd ${TARGET} && wget -N ${SERVERDIR}/gretl-extra.tar.gz && \
  113  tar xvf gretl-extra.tar.gz && rm gretl-extra.tar.gz && \
  114  mv locale.alias share/locale/locale.alias
  115 
  116 # GLib and GTK message catalogs
  117 for lang in $LANGS ; do
  118   cp $SYSTRANS/$lang/LC_MESSAGES/glib20.mo ${TARGET}/share/locale/$lang/LC_MESSAGES/glib20.mo
  119   cp $SYSTRANS/$lang/LC_MESSAGES/gtk30.mo ${TARGET}/share/locale/$lang/LC_MESSAGES/gtk30.mo
  120 done