Skip to content

Commit

Permalink
Final tweaks to install-pkg/Makefile for Release 1.1.0.
Browse files Browse the repository at this point in the history
Added https://github.com/k6ekb/chkhosts link on status
page footer.
  • Loading branch information
Ed Braaten authored and Ed Braaten committed Jul 3, 2014
1 parent 594ca99 commit b7ad4a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion chkhosts-sample.d/conf/gen-webstat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,8 @@ cat >>$WEBPAGE << "FOOTER_SECTION"
<div class="footer">
<hr width="55%">
<p align="center">This page generated by
gen-webstat.sh MY_VERSION_STRING<br>
<a href="https://github.com/k6ekb/chkhosts">
gen-webstat.sh MY_VERSION_STRING</a><br>
This page last edited on
<?php echo strftime("%a, %d %b %Y at %H:%M %Z.",
filemtime("status.php")); ?><br>
Expand Down
5 changes: 3 additions & 2 deletions install-pkg/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# chkhosts.sh and supporting files.

PACKAGEFILES:=../chkhosts.sh \
../chkhosts-sample.d/conf/gen-webstat.sh \
../chkhosts-sample.d/conf/hostlist.txt \
../chkhosts-sample.d/conf/notify-email.txt \
../chkhosts-sample.d/conf/notify-sms.txt \
Expand All @@ -10,15 +11,15 @@ PACKAGEFILES:=../chkhosts.sh \
../chkhosts-sample.d/status-up/
BUILDDIR=./build
SHORT_SHA:=$(shell git rev-parse --short HEAD)
VERSION_STRING?=v1.0.1 (git-$(SHORT_SHA))
VERSION_STRING?=v1.1.0 (git-$(SHORT_SHA))

tarball:
cp install.hdr.in install.hdr
sed -i 's/MY_VERSION_STRING/$(VERSION_STRING)/g' install.hdr
mkdir -p $(BUILDDIR)
cp -r ../chkhosts-sample.d/ $(BUILDDIR)/
( cd $(BUILDDIR)/chkhosts-sample.d/conf; \
sed -i 's/MY_VERSION_STRING/$(VERSION_STRING)/g' gen-webstat.sh; ) \
sed -i 's/MY_VERSION_STRING/$(VERSION_STRING)/g' gen-webstat.sh; )
cp ../chkhosts.sh $(BUILDDIR)/
( cd $(BUILDDIR); \
sed -i 's/MY_VERSION_STRING/$(VERSION_STRING)/g' chkhosts.sh; \
Expand Down

0 comments on commit b7ad4a2

Please sign in to comment.