aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile3
-rwxr-xr-xmkinitfs2
2 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4693de6..b9eb682 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
-VERSION := 1.1
+VERSION := $(shell awk -F= '$$1=="VERSION" {print($$2)}' mkinitfs)
SBIN_FILES := mkinitfs bootchartd
@@ -21,6 +21,7 @@ DISTFILES := $(SBIN_FILES) $(CONF_FILES) $(SHARE_FILES) Makefile
INSTALL := install
help:
+ @echo mkinitfs $(VERSION)
@echo "usage: make install [DESTDIR=]"
install:
diff --git a/mkinitfs b/mkinitfs
index 5fd116d..af52edb 100755
--- a/mkinitfs
+++ b/mkinitfs
@@ -1,5 +1,7 @@
#!/bin/sh
+VERSION=1.0
+
_cp() {
local i
if [ -n "$list_sources" ]; then