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:
8 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/PRINTOOL.VRP

    r51 r56  
    88VRXWindow: __VREMainWindow,1,506,4095,6697,8046
    99VRXWindow: __VRESectionListWindow,1,614,16044,4204,4059
    10 VRXWindow: __VREToolsWindow,1,638,14309,5475,1661
     10VRXWindow: __VREToolsWindow,1,638,14309,5466,1663
    1111VRXWindow: __VREWindListWindow,1,4854,16044,3505,4059
    1212UserFile: 1
  • trunk/gui/printer/manager/PRINTOOL.VRX

    r51 r56  
    236236    PARSE ARG _host, _dest
    237237
     238    IF globals.!programs.!lpadmin == '' THEN DO
     239        CALL LINEOUT globals.!log1, 'lpadmin is not available, cannot delete CUPS queue.'
     240        RETURN 0
     241    END
     242
    238243    IF TRANSLATE( _host ) <> 'LOCALHOST' THEN
    239244        del_cmd = globals.!programs.!lpadmin '-h' _host '-x' _dest
     
    895900LoadSettings: PROCEDURE EXPOSE globals.
    896901
    897     globals.!version = '0.51'
    898     globals.!copyright = '2013-2015'
     902    globals.!version = '0.6'
     903    globals.!copyright = '2013-2017'
    899904
    900905    me = VRGet('Application', 'Program')
     
    910915        cupsdrv = STRIP( cupsdrv, 'T', '\')
    911916    globals.!cupsdir = cupsdrv'\cups'
     917    IF \VRIsDir( globals.!cupsdir ) THEN DO
     918        unixroot = VALUE('UNIXROOT',,'OS2ENVIRONMENT')
     919        IF unixroot <> '' THEN
     920            globals.!cupsdir = unixroot'\usr'
     921        ELSE
     922            globals.!cupsdir = cupsdrv'\usr'
     923    END
    912924
    913925    /* Get system paths.
  • trunk/gui/printer/manager/readme.txt

    r54 r56  
    11PM Printer Manager
    2 Version 0.51
     2Version 0.6
    33
    4   Printer Manager is a new graphical printer management tool designed to 
     4  Printer Manager is a new graphical printer management tool designed to
    55  replace several older, separate programs by integrating their functions
    66  in one, centralized utility:
     
    1313
    1414  Requirements:
    15    - VROBJ.DLL (widely available, included with eCS)
    16    - WPTOOLS.DLL (widely available, included with eCS)
    17    - PR1UTIL.DLL (widely available, included with eCS 2.x)
    18    - VROBJEX.DLL (available from http://trac.netlabs.org/vxapps,
    19                   included in eCS 2.2)
     15   - VROBJ.DLL (widely available)
     16   - WPTOOLS.DLL (widely available)
     17   - PR1UTIL.DLL (widely available)
     18   - VROBJEX.DLL (available from http://trac.netlabs.org/vxapps)
    2019   - RXPRTUTL.DLL (included here)
    2120
     
    3534
    3635  If the CUPS server (local or remote) requires password authentication for
    37   the use of commands like lpadmin, lpinfo, etc. then these programs will 
     36  the use of commands like lpadmin, lpinfo, etc. then these programs will
    3837  block waiting for a password during various operations.  (There doesn't seem
    3938  to be any way to fix this other than replacing the programs entirely... I'm
     
    4847
    4948  PM Printer Manager
    50   (C) 2013-2015 Alexander Taylor
    51  
     49  (C) 2013-2017 Alexander Taylor
     50
    5251    This program is free software; you can redistribute it and/or modify
    5352    it under the terms of the GNU General Public License as published by
    5453    the Free Software Foundation; either version 2 of the License, or
    5554    (at your option) any later version.
    56  
     55
    5756    This program is distributed in the hope that it will be useful,
    5857    but WITHOUT ANY WARRANTY; without even the implied warranty of
    5958    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    6059    GNU General Public License for more details.
    61  
     60
    6261    You should have received a copy of the GNU General Public License
    6362    along with this program; if not, write to the Free Software
    6463    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    65  
     64
    6665  Permission is granted for the inclusion of the PM Printer Manager binaries
    67   in the eComStation operating system.  In this case, the full source code 
     66  in the eComStation operating system.  In this case, the full source code
    6867  need not be included in the OS distribution so long it remains publically
    6968  available through affiliated channels and/or in a location which is clearly
    7069  indicated by the accompanying documentation.
    7170
    72 -- 
     71--
    7372Alex Taylor
    74 October 2015
     73February 2017
  • 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.