aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-04-29 13:41:30 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-04-29 13:41:30 +0000
commite38a53c61d4d4abceffcae9bc5b47be8aaec3b16 (patch)
treeeed133af7b6bf04870fd5589db3c42a35db8573e
parentb6d43f17ceaade4bb4a392ddc2fcf032ddf138f8 (diff)
downloadmkinitfs-e38a53c61d4d4abceffcae9bc5b47be8aaec3b16.tar.bz2
mkinitfs-e38a53c61d4d4abceffcae9bc5b47be8aaec3b16.tar.xz
version 1.0
-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