Simple blog and RSS system
git clone git://
Log | Files | Refs | README | LICENSE

commit 5f22043e342ec5eafb0cfecee4ce487e1a0000ae
parent ebb68bae109beabb4155271f1ff7fdbdeac51eb8
Author: Christos Margiolis <>
Date:   Wed, 14 Oct 2020 23:54:58 +0300

added license and updated Makefile

ALICENSE | 29+++++++++++++++++++++++++++++
MMakefile | 29++++++++++++++++++++++++-----
Mautoblog.1 | 2+-
3 files changed, 54 insertions(+), 6 deletions(-)

diff --git a/LICENSE b/LICENSE @@ -0,0 +1,29 @@ +BSD 3-Clause License + +Copyright (c) 2020-present, Christos Margiolis. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/Makefile b/Makefile @@ -1,19 +1,38 @@ BIN = autoblog +VERSION = 0.1 +DIST = ${BIN}-${VERSION} MAN1 = ${BIN}.1 PREFIX = /usr/local MAN_DIR = ${PREFIX}/man/man1 BIN_DIR = ${PREFIX}/bin -CP=cp -f +CP = cp -f +RM = rm -f +RM_DIR = rm -rf MKDIR = mkdir -p - -.PHONY: install +TAR = tar -cf +GZIP = gzip all: ${BIN} +dist: + ${MKDIR} ${DIST} + ${CP} -R ${BIN} ${MAN1} blogindex.html index.html LICENSE Makefile\ + rss.xml styles.css template.html ${DIST} + ${TAR} ${DIST}.tar ${DIST} + ${GZIP} ${DIST}.tar + ${RM_DIR} ${DIST} + install: all - ${MKDIR} ${DESTDIR}${BIN_DIR} + ${MKDIR} ${DESTDIR}${BIN_DIR} ${DESTDIR}${MAN_DIR} ${CP} ${BIN} ${DESTDIR}${BIN_DIR} - ${MKDIR} ${DESTDIR}${MAN_DIR} ${CP} ${MAN1} ${DESTDIR}${MAN_DIR} + sed "s/VERSION/${VERSION}/g" < ${MAN1} > ${DESTDIR}${MAN_DIR}/${MAN1} + chmod 644 ${DESTDIR}${BIN_DIR}/${BIN} chmod 644 ${DESTDIR}${MAN_DIR}/${MAN1} + +uninstall: all + ${RM} ${DESTDIR}${BIN_DIR}/${BIN} + ${RM} ${DESTDIR}${MAN_DIR}/${MAN1} + +.PHONY: all dist install uninstall diff --git a/autoblog.1 b/autoblog.1 @@ -1,4 +1,4 @@ -.TH AUTOBLOG 1 +.TH AUTOBLOG 1 autoblog\-VERSION .SH NAME autoblog \- automatic blog and RSS system .SH SYNOPSIS