Difference between revisions of "Shell Commands/Version"
From MorphOS Library
(Created page with "'''Version''' - Reports the version number of the specified file NAME, VERSION/N, REVISION/N, FILE/S, FULL/S, UNIT/N, INTERNAL/S, RES/S...") |
|||
| Line 1: | Line 1: | ||
'''Version''' - Reports the version number of the specified file | '''Version''' - Reports the version number of the specified file | ||
| − | NAME, VERSION/N, REVISION/N, FILE/S, FULL | + | NAME/M,MD5SUM/S,VERSION/N,REVISION/N,FILE/S,FULL/S,RES/S |
| − | |||
<nowiki> | <nowiki> | ||
| − | NAME - Name of the | + | NAME - Name of the library, device, command, or other file to return version info |
| + | MD5SUM - Calculates MD5 hash of the file | ||
VERSION - Optional: Version number to look for | VERSION - Optional: Version number to look for | ||
REVISION - Optional: Revision number to look for | REVISION - Optional: Revision number to look for | ||
| Line 12: | Line 12: | ||
of that name is already in memory or available in LIBS: | of that name is already in memory or available in LIBS: | ||
FULL - prints out the complete version string, including the date | FULL - prints out the complete version string, including the date | ||
| − | |||
| − | |||
RES - Specify this to get the version of Resident commands</nowiki> | RES - Specify this to get the version of Resident commands</nowiki> | ||
Version finds the version and revision number of a library, device, command. | Version finds the version and revision number of a library, device, command. | ||
Latest revision as of 13:19, 6 March 2015
Version - Reports the version number of the specified file
NAME/M,MD5SUM/S,VERSION/N,REVISION/N,FILE/S,FULL/S,RES/S
NAME - Name of the library, device, command, or other file to return version info
MD5SUM - Calculates MD5 hash of the file
VERSION - Optional: Version number to look for
REVISION - Optional: Revision number to look for
FILE - Forces Version to ignore libraries or device drivers
currently loaded. This allows you to get the version number
of a .library or .device file on disk when a library or device
of that name is already in memory or available in LIBS:
FULL - prints out the complete version string, including the date
RES - Specify this to get the version of Resident commands
Version finds the version and revision number of a library, device, command. It can also test for a specific version/revision and set the condition flags if the version/revision is greater.
Version with no NAME argument prints the Kickstart version number and the Workbench version number and sets the two corresponding environment variables. If a name is specified, Version attempts to open the library, device, drive, or file and read the version information. Specify a device name, such as DH0:, to get the version of the file system used by a drive.
Example:
MorphOS:> version morphos FULL MorphOS 1.4 (25/04/2003) © 1999-2003 by Ralph Schmidt, Frank Mariak, Emmanuel Lesueur, Teemu Suikki, Harry Sintonen