run-external-programOS Interfacesvn-versionGoTo Top

svn-version   &key directory program => version-string-or-nil[Function]

Purpose
Obtain the Subversion compact version number of a working copy.

Package   :gbbopen-tools

Module   :os-interface

Arguments and values

directory     One of the following:

(default is the GBBopen install directory)
program     A string specifying the name of the program to be run (default is "svnversion")
version-string-or-nil     A string or nil

Returns
A string containing the compact version number or nil if the program svnversion cannot be found or the specified directory is not in a Subversion working copy.

Description
LispWorks (non-Windows platforms) and SBCL do not use a search path for locating program, the full path must be specified in the program string.

Examples

  > (svn-version)
  "525" 
  > (svn-version :program "/usr/bin/svnversion")
  "525" 
  > (svn-version :directory ':my-app-root)
  "73:76M" 
  >


The GBBopen Project


run-external-programOS Interfacesvn-versionGoTo Top