summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile7
-rw-r--r--docs/cpuinfo.14
2 files changed, 6 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 055bc47..d320215 100644
--- a/Makefile
+++ b/Makefile
@@ -3,8 +3,9 @@ all: version documentation build
# Builds the project. Since this is only a fake project, it just copies a script.
build:
- test ! -d ./bin && mkdir ./bin
- cp -p ./src/$(NAME) ./bin/$(NAME)
+ test ! -d ./bin && mkdir ./bin || exit 0
+ sed "s/VERSION/$$(cat .version)/" src/$(NAME) > ./bin/$(NAME)
+ chmod 755 ./bin/$(NAME)
# 'install' installes a fake-root, which will be used to build the Debian package
# $DESTDIR is actually set by the Debian tools.
@@ -16,7 +17,7 @@ deinstall:
test ! -z "$(DESTDIR)" && test -f $(DESTDIR)/usr/bin/$(NAME) && rm $(DESTDIR)/usr/bin/$(NAME) || exit 0
clean:
- test -d ./bin && rm -Rf ./bin
+ test -d ./bin && rm -Rf ./bin || exit 0
# ADDITIONAL RULES:
diff --git a/docs/cpuinfo.1 b/docs/cpuinfo.1
index 2ec3782..4ed0943 100644
--- a/docs/cpuinfo.1
+++ b/docs/cpuinfo.1
@@ -123,8 +123,8 @@
.rm #[ #] #H #V #F C
.\" ========================================================================
.\"
-.IX Title "CBARS 1"
-.TH CBARS 1 "2013-07-21" "cpuinfo 0.0.0-develop" "User Commands"
+.IX Title "CPUINFO 1"
+.TH CPUINFO 1 "2013-07-26" "cpuinfo 0.0.0" "User Commands"
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
.\" way too many mistakes in technical documents.
.if n .ad l