Changeset 512


Ignore:
Timestamp:
Jan 6, 2011, 7:00:19 PM (15 years ago)
Author:
Herwig Bauernfeind
Message:

New REXX instpl.cmd

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/client-2.0/src/resources/instpl.cmd

    r323 r512  
    1 @echo off
    2 REM this script is executed from NLS directory!
    3 copy ndpsmb.hlp ..
    4 cd ..
    5 nd.exe plugin install ndpsmb.ndp
    6 del ndpsmb.hlp
     1/* Install Samba Plugin */
     2call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
     3call SysLoadFuncs
     4'@echo off'
     5
     6/* Add supported languages here */
     7langs = "DE,FR,EN"
     8
     9ok = SysFileTree("ndpsmb.dll",exist.,"FO")
     10if exist.0 = 0 then do
     11  say "Plugin not found in current directory! Aborting..."
     12  exit -1
     13end
     14
     15lang = translate(arg(1))
     16if lang = "" then do
     17  lang = translate(left(strip(value("LANG",,"OS2ENVIRONMENT")),2))
     18end
     19if pos(lang,langs) = 0 then lang = 'EN'
     20say 'Installing 'lang
     21'copy .\'lang'\ndpsmb.hlp 1>NUL'
     22'nd.exe plugin install ndpsmb.ndp'
     23ok = SysFileDelete("ndpsmb.hlp")
Note: See TracChangeset for help on using the changeset viewer.