Skip to content

Commit

Permalink
Add version to man page.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyp committed Jan 27, 2009
1 parent 8d29b4c commit c195273
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
*~
Doxyfile
snipes
snipes.6
snipes.kdevelop.pcs
snipes.kdevses
2 changes: 1 addition & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
1.0.3
Handles case when SDL audio buffer is smaller than requested.
Warning free build. (Still ugly code.)
Warning free build. (Still ugly code, but split into smaller pieces.)

1.0.2
Added Makefile.
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ CFLAGS += `sdl-config --cflags` -I$(INTERMEDIATE)
LDLIBS += `sdl-config --libs`


all: snipes
all: snipes snipes.6

# Everything at once
#snipes: $(SRCS) $(INTERMEDIATE)/bitms.h
Expand All @@ -56,6 +56,9 @@ $(INTERMEDIATE)/graphics.o: $(INTERMEDIATE)/bitms.h
$(INTERMEDIATE)/bitms.h: $(IMGH)
cat $(IMGH) > $@

snipes.6: snipes.6.in
sed s/'`VERSION`'/`cat VERSION`/ < $< > $@

# Release tarball
snipes-%.tar.gz:
git archive --prefix=$(@:.tar.gz=)/ $(@:snipes-%.tar.gz=%) | gzip -9 > $@
Expand Down
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.0.3
6 changes: 3 additions & 3 deletions snipes.6 → snipes.6.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH SNIPES 6 "2005/02/02" "Snipes" "Snipes 2003 (with SDL since 2005)"
.TH SNIPES 6 "2009/01/27" "Snipes" "Snipes `VERSION`"

.SH NAME
snipes \- scrolling shooter based on old DOS game of same name
Expand All @@ -14,7 +14,7 @@ Movement:
\fBUp\fR/\fBDown\fR/\fBLeft\fR/\fBRight\fR arrow keys,
use the \fBSpacebar\fR to move faster.

Shooting:
Shooting:
\fBW\fR, \fBA\fR, \fBS\fR, \fBD\fR,
and also \fBQ\fR, \fBE\fR, \fBZ\fR, \fBX\fR, \fBC\fR
if it's easier to use them too.
Expand Down Expand Up @@ -72,7 +72,7 @@ This page and the program by Cyp.
Original DOS game of same name by someone else.

.SH COPYRIGHT
Copyright \(co 2005, this software is licensed under the GPL version 2 or later,
Copyright \(co 2005-2009, this software is licensed under the GPL version 2 or later,
as published by the Free Software Foundation.

There is NO warranty; not even for sleepless nights caused by nightmares
Expand Down

0 comments on commit c195273

Please sign in to comment.