QMPKG - A Package Manager for QM
Downloads:
Loading:
Load the QMPKG object code into BP.OUT and catalog it. QMPKG should work with all versions of QM from about 2.3-0 onward. This includes both commercial QM on Windows and Linux as well as open-source (gpl) QM on Linux.
Compiling:
QMPKG has $internal functions, so you cannot compile it yourself on commercialQM. You can compile it on openQM by running 'qm -internal'.
Conrol files in QMSYS
QMPKG.FILES,INSTALLED.PKGS
QMPKG.FILES,INSTALLED.SPECS
QMPKG.FILES,AVAIL.PKGS
QMPKG.FILES,DOWNLOAD.PKGS
QMPKG.FILES,BUILD.PKGS
QMPKG.FILES,BUILD.SPECS
SPEC file layout:
name:Package Name
version:Package Version
target:all|win|linux
license:all|com|gpl
build exec:command
acct:acct-name:directory
WinAcct:acct-name:directory
LinuxAcct:acct-name:directory
XlatAcct:SaveAcct:RestoreAcct
file:Acct:dict|data:FileName:FileType
exec:commandname: Package Name
Enter the name of the package. Package names are single words and are not case sensitive.
version: Package Version
Enter the version of the package. Versions are 3-part numbers seperated by either periods or dashes.
target: Target platform
Enter the target platform. Currently defined targets are:
all - allow installation anywhere
win - allow installation on Windows
linux - allow installation on Linuxlicense: Run-time license
Enter the target platform license. Currently defined licenses are:
all - allow installation anywhere
com - allow installation only on commercialQM
gpl - allow installation only on gpl licensed openQMbuild exec: command
Commands that are execute in-sequence when the package is being created.
acct:AcctName:directory
Setup to create a new account
WinAcct:AcctName:directory
Setup to create a new account on windows
LinuxAcct:AcctName:directory
Setup to create a new account on linux
xlatacct:SaveAcct:RestoreAcct
Allows you to create the package from a different account than it will be restored to.
file:acct dict|data FileName FileType ItemList
Dumps items into the package.
FileType = dynamic, directory, or object. 'object' files are directory files that are accessed with 'mark.mapping off'. You should use 'object' files for binary data.
ItemList = list of items, or * for all items
exec: command
Commands that are execute in-sequence when the package is being loaded.
QMPKG command usage
QMPKG VERSION
QMPKG HELP
QMPKG INSTALL
QMPKG SPEC.FROM.ACCT
QMPKG MK.PKG
QMPKG LD.PKGQMPKG VERSION
Display the version of the QMPKG program
QMPKG HELP
Display some help text
QMPKG INSTALL package
Install or upgrade a named package over the internet
QMPKG SPEC.FROM.ACCT account spec
Create a spec item in QMPKG.FILES,BUILD.SPECS that includes all of the files in an account. You can then INCLUDE this item in your spec file to dump/load an entire account.
QMPKG MK.PKG package
Create a package using the spec item in QMPKG.FILES,BUILD.SPECS. The package will be stored in QMPKG.FILES,BUILD.PKGS with the name package_version_platform_license.qmpkg
QMPKG LD.PKG package
Manually load a package without going to the internet and without checking dependencies. The source package must be in QMPKG.FILES,DOWNLOAD.PKGS with the name package_version_platform_license.qmpkg