diff options
author | An-Cheng Huang <ancheng@ancheng-vm.localdomain> | 2007-09-26 14:00:19 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@ancheng-vm.localdomain> | 2007-09-26 14:00:19 -0700 |
commit | 1d27be18b254c66d0a0fad7fbd02398f6990851d (patch) | |
tree | 542a6d5fe53c5a810078a66a13b5885c29640b2b | |
parent | b0b6c1e13d7ccf9e790b5cc78c021f30d860c90b (diff) | |
download | vyatta-op-1d27be18b254c66d0a0fad7fbd02398f6990851d.tar.gz vyatta-op-1d27be18b254c66d0a0fad7fbd02398f6990851d.zip |
moved "show version" template code into script.
-rwxr-xr-x | scripts/show_version | 12 | ||||
-rw-r--r-- | templates/show/version/node.def | 8 |
2 files changed, 10 insertions, 10 deletions
diff --git a/scripts/show_version b/scripts/show_version index dde4f15..ffb2da0 100755 --- a/scripts/show_version +++ b/scripts/show_version @@ -21,9 +21,15 @@ # # **** End License **** -cat <<EOF -FIXME! add vyatta show version -EOF +# TODO add other version info + +for cl in /usr/share/doc/vyatta-*/changelog.gz ; do + dir=${cl%/*} ; + pkg=${dir##*/} ; + printf " %-20s " ${pkg} ; + test ${#pkg} -lt 20 || echo -ne \\n\\t ; + gunzip -c $cl | tail -n1 ; +done ### Local Variables: ### mode: shell-script diff --git a/templates/show/version/node.def b/templates/show/version/node.def index 1a1adb0..9e119d4 100644 --- a/templates/show/version/node.def +++ b/templates/show/version/node.def @@ -1,8 +1,2 @@ help: "Show Vyatta version information" -run: for cl in /usr/share/doc/vyatta-*/changelog.gz ; do - dir=${cl%/*} ; - pkg=${dir##*/} ; - printf " %-20s " ${pkg} ; - test ${#pkg} -lt 20 || echo -ne \\n\\t ; - gunzip -c $cl | tail -n1 ; - done +run: ${vyatta_bindir}/show_version |