Add version variable
Stefan Bund [Fri, 6 Nov 2009 12:55:35 +0000 (13:55 +0100)]
lib/.gitignore [new file with mode: 0644]
mapsector

diff --git a/lib/.gitignore b/lib/.gitignore
new file mode 100644 (file)
index 0000000..5e64463
--- /dev/null
@@ -0,0 +1 @@
+/00_version.sh
index c3de5a8..a704e11 100755 (executable)
--- a/mapsector
+++ b/mapsector
@@ -4,6 +4,7 @@
 
 mappers=""
 scanners=""
+version="unknown"
 
 register_mapper()
 {
@@ -120,6 +121,8 @@ mapsector will give you the mountpoint).
 
 if '--noscan' is given, the possibly lengthy (!!) filesystem scan for
 filenames is skipped.
+
+-- mapsector Version $version
 EOF
     exit "${help:-1}"
 fi