"Fossies" - the Fresh Open Source Software Archive

Member "sip-0.12.1/config/loader.sce.in" (22 Feb 2012, 2171 Bytes) of package /linux/privat/sip-0.12.1.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (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 "loader.sce.in": 0.5.6_vs_0.12.1.

    1 mode(-1);
    2 // 
    3 // -------------------------------------------------------------------------
    4 // SIP - Scilab Image Processing toolbox
    5 // Copyright (C) 2002  Ricardo Fabbri
    6 //
    7 // This program is free software; you can redistribute it and/or modify
    8 // it under the terms of the GNU General Public License as published by
    9 // the Free Software Foundation; either version 2 of the License, or
   10 // (at your option) any later version.
   11 //
   12 // This program is distributed in the hope that it will be useful,
   13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
   14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   15 // GNU General Public License for more details.
   16 //
   17 // You should have received a copy of the GNU General Public License
   18 // along with this program; if not, write to the Free Software
   19 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   20 // -------------------------------------------------------------------------
   21 //
   22 
   23 // specific part
   24 libname='siplib'
   25 libtitle='SIP - Scilab Image Processing Toolbox @PACKAGE_VERSION@';
   26 
   27 // get the absolute path 
   28 SIPDIR=get_absolute_file_path('loader.sce') + '/'; 
   29 SIPDEMO=SIPDIR+'macros/sipdemo_gui.dem';
   30 
   31 // resets the default image viewer 
   32 SIPVIEWER = 'sci';
   33 
   34 // load the library macros
   35 execstr(libname+'=lib(""'+SIPDIR+'macros/'+'"")')
   36 // XXX TODO PREDEF ALL???
   37 
   38 // add the help chapter and some utilities
   39 scilab_version=getversion();
   40 if scilab_version=="scilab-2.7" then
   41    %helps = [%helps; SIPDIR+'man', libtitle]
   42 else
   43   if (str2code( part(scilab_version, 8)) <= 4) then //version <= 4.x.x
   44      add_help_chapter(libtitle, SIPDIR + 'man');
   45   else
   46      // Scilab 5
   47      path_addchapter = SIPDIR + "jar/";
   48      if ( fileinfo(path_addchapter) <> [] ) then
   49         add_help_chapter(libtitle, path_addchapter, %F);
   50         clear add_help_chapter;
   51      end
   52      // load utilities (aliases etc)
   53      exec(SIPDIR+'macros/sip_init.sce');
   54   end
   55 end
   56 
   57 // ADD C routines
   58 exec (SIPDIR+'loader_include.sce');
   59 
   60 mess=[libtitle+' loaded';
   61     'Enter ""exec(SIPDEMO);"" for demonstrations.'; ''];
   62 
   63 write(%io(2),'--------------------------------------------');
   64 write(%io(2),mess);
   65 
   66 clear libtitle mess