summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/show_version12
1 files changed, 9 insertions, 3 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