Changeset 737
- Timestamp:
- May 13, 2010, 8:52:44 PM (15 years ago)
- Location:
- packaging
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
packaging/Makefile.packages
r734 r737 99 99 pkg.readme=6 100 100 101 # create another WPI with no XWorkplace dependency, see #146 102 wpi.lib_noxwpdep.PATH = $(OUT_ROOT)/qt-lib-$(QT_VER_FULL)-noxwpdep.wpi 103 wpi.lib_noxwpdep.SCRIPT = $(WPI_ROOT)/lib_noxwpdep.wis 104 wpi.lib_noxwpdep.PACKAGES = \ 105 pkg.lib.runtime=1 \ 106 pkg.lib.instutils=2 \ 107 pkg.lib.plugins=3 \ 108 pkg.lib.translations=4 \ 109 pkg.readme=6 110 101 111 # 102 112 # Development archive … … 198 208 # 199 209 200 WPIS = wpi.lib wpi. dev wpi.examples wpi.doc210 WPIS = wpi.lib wpi.lib_noxwpdep wpi.dev wpi.examples wpi.doc 201 211 202 212 #------------------------------------------------------------------------------- -
packaging/lib.wis.tpl
r736 r737 99 99 </REXX> 100 100 101 <REXX NAME="GetPkgPathRefFixed">102 parse arg aPkgIdUtf8', 'aPkgIdLocal103 ver = GetPkgVersion(aPkgIdUtf8)104 if (ver == '') then return 'Unable to determine the installation path'105 return '$('aPkgIdLocal')'106 107 /* same as above... */108 GetPkgVersion: procedure109 parse arg aPkgId110 rc = rxFuncAdd('SysLoadFuncs', 'REXXUTIL', 'SysLoadFuncs')111 rc = SysLoadFuncs()112 WarpInDir = strip(SysIni('USER', 'WarpIN', 'Path'), 'T', '0'x)113 if (WarpInDir \== '') then do114 rc = SysFileTree(WarpInDir'\DATBAS_?.INI', 'inis', 'FO')115 if (rc == 0) then do116 do i = 1 to inis.0117 rc = SysIni(inis.i, 'ALL:', 'apps')118 if (rc == '') then do119 do j = 1 to apps.0120 apps.j = strip(apps.j, 'T', '0'x)121 if (left(apps.j, length(aPkgId)) == aPkgId) then do122 /* found the app */123 ver = right(apps.j, length(apps.j) - length(aPkgId) - 1)124 ver = translate(ver, '.', '\')125 return ver126 end127 end128 end129 end130 end131 end132 return ''133 </REXX>134 135 <REXX NAME="GetPkgSelectAttrFixed">136 /* makes sure the package is selected only if the prerequisite is present */137 parse arg aPkgId138 ver = GetPkgVersion(aPkgId)139 if (ver == '') then return ''140 return 'SELECT'141 142 /* same as above... */143 GetPkgVersion: procedure144 parse arg aPkgId145 rc = rxFuncAdd('SysLoadFuncs', 'REXXUTIL', 'SysLoadFuncs')146 rc = SysLoadFuncs()147 WarpInDir = strip(SysIni('USER', 'WarpIN', 'Path'), 'T', '0'x)148 if (WarpInDir \== '') then do149 rc = SysFileTree(WarpInDir'\DATBAS_?.INI', 'inis', 'FO')150 if (rc == 0) then do151 do i = 1 to inis.0152 rc = SysIni(inis.i, 'ALL:', 'apps')153 if (rc == '') then do154 do j = 1 to apps.0155 apps.j = strip(apps.j, 'T', '0'x)156 if (left(apps.j, length(aPkgId)) == aPkgId) then do157 /* found the app */158 ver = right(apps.j, length(apps.j) - length(aPkgId) - 1)159 ver = translate(ver, '.', '\')160 return ver161 end162 end163 end164 end165 end166 end167 return ''168 </REXX>169 170 101 <REXX NAME="AskToUninstallPreviousVersion"> 171 102 call WirexxShowMessage , … … 219 150 >Contains translations of the Qt runtime. This package is recommended</PCK> 220 151 221 < PCK INDEX=5152 <${disable_tag_begin}PCK INDEX=5 222 153 PACKAGEID="netlabs.org\Qt4\SysTray\${version_path}" 223 154 TITLE="Extended System Tray widget for XCenter" 224 =("GetPkgSelectAttrFixed Ulrich Möller\XWorkplace\Kernel")155 SELECT 225 156 REQUIRES="1" 226 157 REQUIRES="Ulrich Mller\XWorkplace\Kernel\0\9\9" 227 TARGET=" =("GetPkgPathRefFixed Ulrich Möller\XWorkplace\Kernel, Ulrich Mller\XWorkplace\Kernel")" FIXED228 LONGFILENAMES 229 >Provides support for the system tray to Qt applications. This package is recommended</PCK >158 TARGET="$(Ulrich Mller\XWorkplace\Kernel)" FIXED 159 LONGFILENAMES 160 >Provides support for the system tray to Qt applications. This package is recommended</PCK${disable_tag_end}> 230 161 231 162 <PCK INDEX=6 … … 302 233 303 234 304 < PAGE INDEX=5 TYPE=TEXT>235 <${disable_tag_begin}PAGE INDEX=5 TYPE=TEXT> 305 236 <NEXTBUTTON TARGET=0>I~nstall</NEXTBUTTON> 306 237 <TEXT>Press "Install" to begin installing the Qt 4 Runtime Libraries. … … 310 241 To do so, restart XCenter and select "Create new widget" > "Extended system tray" from the XCenter context menu. 311 242 </TEXT> 312 </PAGE> 243 </PAGE${disable_tag_end}> 244 245 <${enable_tag_begin}PAGE INDEX=5 TYPE=TEXT> 246 <NEXTBUTTON TARGET=0>I~nstall</NEXTBUTTON> 247 <TEXT>Press "Install" to begin installing the Qt 4 Runtime Libraries.</TEXT> 248 </PAGE${enable_tag_end}> 313 249 314 250 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> -
packaging/make_packages.cmd
r734 r737 331 331 G.vars.4.v = G.QtInstallPrefix 332 332 333 G.vars.5 = 'disable_tag_begin'; 334 G.vars.5.v = '' 335 336 G.vars.6 = 'disable_tag_end'; 337 G.vars.6.v = '' 338 339 G.vars.7 = 'enable_tag_begin'; 340 G.vars.7.v = '!--' 341 342 G.vars.8 = 'enable_tag_end'; 343 G.vars.8.v = '--' 344 345 G.vars.0 = 8 346 347 call ReplaceInFile 'lib.wis.tpl', G.OutDirWpi'\lib.wis', 'G.vars' 348 349 /* disable the xsystray package and create another WPI, see #146 */ 350 G.vars.5.v = '!--' 351 G.vars.6.v = '--' 352 G.vars.7.v = '' 353 G.vars.8.v = '' 354 call ReplaceInFile 'lib.wis.tpl', G.OutDirWpi'\lib_noxwpdep.wis', 'G.vars' 355 356 /* other archives don't need "disable_tag_*" and friends */ 333 357 G.vars.0 = 4 334 358 335 call ReplaceInFile 'lib.wis.tpl', G.OutDirWpi'\lib.wis', 'G.vars'336 359 call ReplaceInFile 'dev.wis.tpl', G.OutDirWpi'\dev.wis', 'G.vars' 337 360 call ReplaceInFile 'examples.wis.tpl', G.OutDirWpi'\examples.wis', 'G.vars' … … 342 365 /* create the .WPI packages */ 343 366 if (Exec('make -f Makefile.packages wpi.lib', G.ScriptDir, '>'G.LogFile) \= 0) then 367 call Done 1 368 if (Exec('make -f Makefile.packages wpi.lib_noxwpdep', G.ScriptDir, '>'G.LogFile) \= 0) then 344 369 call Done 1 345 370 if (Exec('make -f Makefile.packages wpi.dev', G.ScriptDir, '>'G.LogFile) \= 0) then
Note:
See TracChangeset
for help on using the changeset viewer.