mirror of https://github.com/KLayout/klayout.git
Prepare Python script for making a DMG file from bundles.
This refs #22.
This commit is contained in:
parent
d1d4751a3c
commit
3fe0280a14
|
|
@ -41,7 +41,7 @@ def SetGlobals():
|
||||||
global OpClean # 'clean' operation
|
global OpClean # 'clean' operation
|
||||||
global OpMake # 'make' operation
|
global OpMake # 'make' operation
|
||||||
global DMGSerialNum # the DMG serial number
|
global DMGSerialNum # the DMG serial number
|
||||||
global QtIndification # Qt identification
|
global QtIdentification # Qt identification
|
||||||
global Version # KLayout's version
|
global Version # KLayout's version
|
||||||
global OccupiedDS # approx. occupied dist space
|
global OccupiedDS # approx. occupied dist space
|
||||||
global BackgroundPNG # the background PNG image file
|
global BackgroundPNG # the background PNG image file
|
||||||
|
|
@ -117,7 +117,7 @@ def SetGlobals():
|
||||||
OpClean = False
|
OpClean = False
|
||||||
OpMake = False
|
OpMake = False
|
||||||
DMGSerialNum = 1
|
DMGSerialNum = 1
|
||||||
QtIndification = "Qt593mp"
|
QtIdentification = "Qt593mp"
|
||||||
Version = GetKLayoutVersionFrom( "./version.sh" )
|
Version = GetKLayoutVersionFrom( "./version.sh" )
|
||||||
OccupiedDS = -1
|
OccupiedDS = -1
|
||||||
BackgroundPNG = "KLayoutDMG-Back.png"
|
BackgroundPNG = "KLayoutDMG-Back.png"
|
||||||
|
|
@ -198,7 +198,7 @@ def ParseCommandLineArguments():
|
||||||
global OpClean
|
global OpClean
|
||||||
global OpMake
|
global OpMake
|
||||||
global DMGSerialNum
|
global DMGSerialNum
|
||||||
global QtIndification
|
global QtIdentification
|
||||||
global Version
|
global Version
|
||||||
global OccupiedDS
|
global OccupiedDS
|
||||||
global TargetDMG
|
global TargetDMG
|
||||||
|
|
@ -246,12 +246,12 @@ def ParseCommandLineArguments():
|
||||||
print(Usage)
|
print(Usage)
|
||||||
quit()
|
quit()
|
||||||
|
|
||||||
PkgDir = opt.pkg_dir
|
PkgDir = opt.pkg_dir
|
||||||
OpClean = opt.operation_clean
|
OpClean = opt.operation_clean
|
||||||
OpMake = opt.operation_make
|
OpMake = opt.operation_make
|
||||||
QtIndification = opt.qt_identification
|
QtIdentification = opt.qt_identification
|
||||||
DMGSerialNum = int(opt.dmg_serial)
|
DMGSerialNum = int(opt.dmg_serial)
|
||||||
TargetDMG = "klayout-%s-%s-%s-%d-%s.dmg" % (Version, GenOSName, Platform, DMGSerialNum, QtIndification)
|
TargetDMG = "klayout-%s-%s-%s-%d-%s.dmg" % (Version, GenOSName, Platform, DMGSerialNum, QtIdentification)
|
||||||
|
|
||||||
OccupiedDS = CheckPkgDirectory()
|
OccupiedDS = CheckPkgDirectory()
|
||||||
if not OccupiedDS > 0:
|
if not OccupiedDS > 0:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue