Ignore:
Timestamp:
2010-07-26T11:32:05+12:00 (14 years ago)
Author:
davidb
Message:

Work out name of extension rather than use hard-wired name

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs2-extensions/open-office/trunk/setup.bat

    r22250 r22496  
    22pushd "%CD%"
    33CD /D "%~dp0"
    4 set GSDLLANG=en
     4
    55set extdesc=the OpenOffice Extension
    66
     
    3434:Success
    3535
     36set fulldir=%~dp0
     37
     38:: strip off everything up to (and including) ext dir
     39set extdir=%fulldir:*ext\=%
     40
     41:: remove trailing slash
     42set extdir=%extdir:\=%
     43
    3644if "x%GSDLEXTS%" == "x" (
    37   set GSDLEXTS=open-office
     45  set GSDLEXTS=%extdir%
    3846) else (
    39   set GSDLEXTS=%GSDLEXTS%:open-office
     47  set GSDLEXTS=%GSDLEXTS%:%extdir%
    4048)
    4149
    4250echo +Your environment is now setup for %extdesc%
    4351
     52:: Back to delayed expansion to avoid problems with environment
     53:: variables with brackets in them, such as "Program Files (x86)"
     54
     55
    4456:End
    4557
Note: See TracChangeset for help on using the changeset viewer.