Ignore:
Timestamp:
Feb 14, 2017, 6:55:44 AM (9 years ago)
Author:
Alex Taylor
Message:

Updated PrintMan to deal with RPM-installed CUPS. WPI packaging modifications. Set svn:ignore props on various directories.

Location:
trunk/gui/printer/manager
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/printer/manager

    • Property svn:ignore set to
      __out
      *.exe
      *.EXE
      *.hlp
      *.HLP
      *.msg
      *.MSG
      *.res
      *.RES
  • trunk/gui/printer/manager/wpi

    • Property svn:ignore set to
      *.msg
      *.MSG
      *.wpi
      *.WPI
      *.exe
      *.EXE
  • trunk/gui/printer/manager/wpi/makewpi.cmd

    r49 r56  
    1919'@wic.exe' pkgname'.wpi -a 1 printman.exe'
    2020'@wic.exe' pkgname'.wpi -a 1 printmen.msg'
    21 '@wic.exe' pkgname'.wpi -a 1 rxprtutl.dll'
    2221'@wic.exe' pkgname'.wpi -a 1 -c.. newprint.ico'
    2322'@wic.exe' pkgname'.wpi -a 1 -c.. COPYING'
    2423'@wic.exe' pkgname'.wpi -a 1 -c.. readme.txt'
     24'@wic.exe' pkgname'.wpi -a 2 rxprtutl.dll'
    2525'@wic.exe' pkgname'.wpi -s' wisname
    2626CALL ENDLOCAL
  • trunk/gui/printer/manager/wpi/printman.wis

    r54 r56  
    1212        ELSE
    1313            RETURN path'\apps'
     14    </REXX>
     15
     16    <REXX NAME="DefaultPath2">
     17        path = VALUE('OSDIR',,'OS2ENVIRONMENT')
     18        IF path == '' THEN path = '?:\OS2'
     19        RETURN path
    1420    </REXX>
    1521
     
    5460    </REXX>
    5561
     62    <REXX NAME="ReqDLL">
     63        /* Searches the system LIBPATH for the specified DLL.  If not found,
     64         * returns the string 'REQUIRES=xxx'.
     65         *
     66         * Parameters:
     67         *      dname   Name of the DLL to look for (must include extension)
     68         *      reqpkg  Value of REQUIRES string to return if DLL is not found
     69         */
     70        CALL RxFuncAdd 'SysLoadFuncs', 'REXXUTIL', 'SysLoadFuncs'
     71        CALL SysLoadFuncs
     72
     73        PARSE ARG dname reqpkg
     74        IF dname == '' THEN RETURN ''
     75
     76        _bd = SysBootDrive()
     77        IF _bd == '' THEN
     78            _bd = FILESPEC('DRIVE', VALUE('COMSPEC',,'OS2ENVIRONMENT'))
     79        _csys = _bd'\CONFIG.SYS'
     80
     81        CALL SysFileSearch 'LIBPATH=', _csys, 'match.'
     82        DO i = 1 TO match.0
     83            PARSE UPPER VAR match.i _lead 'LIBPATH=' _lpath
     84            IF (_lead == '') & (_lpath <> '') THEN LEAVE
     85        END
     86        CALL SETLOCAL
     87        _testenv = 'TEST_'dname'_LIBPATH'
     88        CALL VALUE _testenv, _lpath, 'OS2ENVIRONMENT'
     89        location = SysSearchPath( _testenv, dname )
     90        CALL ENDLOCAL
     91
     92        IF location == '' THEN DO
     93            CALL WirexxPutEnv dname, '0'
     94            IF reqpkg <> '' THEN
     95                RETURN 'REQUIRES='reqpkg
     96        END
     97
     98        CALL WirexxPutEnv dname, '1'
     99        RETURN ''
     100    </REXX>
     101
     102    <REXX NAME="ConditionalTitle">
     103        PARSE ARG dllname title
     104        was_found = WirexxGetEnv( dllname )
     105        IF was_found == 1 THEN
     106            RETURN '[Already Installed]' title
     107        ELSE
     108            RETURN title
     109    </REXX>
     110
     111    <REXX NAME="SelectIfRequired">
     112        PARSE ARG dllname
     113        was_found = WirexxGetEnv( dllname )
     114        IF was_found == 1 THEN
     115            RETURN ''
     116        ELSE
     117            RETURN 'SELECT'
     118    </REXX>
     119
     120
    56121    <!-- PACKAGES ----------------------------------------------------------->
    57122
    58123    <PCK INDEX=1
    59         PACKAGEID="Alex Taylor\Printer Manager\Program\0\5\1"
     124        PACKAGEID="Alex Taylor\Printer Manager\Program\0\6\0"
    60125        TITLE="Printer Manager (including English language support)"
    61126        TARGET="=("DefaultPath")\printman"
     
    67132         =("CheckDLL PR1UTIL.DLL 0 The runtime library PR1UTIL.DLL was not found on your system. You must install this library in order to use Printer Manager.")
    68133
     134         =("ReqDLL RXPRTUTL.DLL 2")
     135
    69136        CREATEOBJECT="REPLACE WPProgram|Manage Printers|<WP_PRINTERSFOLDER>|EXENAME=$(1)\printman.exe;PROGTYPE=PM;OBJECTID=<PRINT_MANAGER>;"
    70         CREATEOBJECT="REPLACE WPProgram|Install Printer|<WP_PRINTERSFOLDER>|EXENAME=$(1)\printman.exe;PARAMETERS=/create;PROGTYPE=PM;ICONFILE=$(1)\newprint.ico;OBJECTID=<ECS_PRINTGUIDE>;"
     137        CREATEOBJECT="REPLACE WPProgram|Install Printer|<WP_PRINTERSFOLDER>|EXENAME=$(1)\printman.exe;PARAMETERS=/create;PROGTYPE=PM;ICONFILE=$(1)\newprint.ico;OBJECTID=<WP_PRINTGUIDE>;"
    71138     >This package contains the graphical printer manager along with the English language files.</PCK>
     139
     140    <PCK INDEX=2
     141        PACKAGEID="Alex Taylor\REXX Printer Utilities\Runtime\0\3"
     142        TITLE="=("ConditionalTitle RXPRTUTL.DLL REXX Printer Utilities (RXPRTUTL.DLL)")"
     143        TARGET="=("DefaultPath2")\dll"
     144        =("SelectIfRequired RXPRTUTL.DLL")
     145    >This package contains the required library VROBJ.DLL</PCK>
    72146
    73147</HEAD>
Note: See TracChangeset for help on using the changeset viewer.