rename this version stagit -> stagit-gopher - stagit-gopher - A git gopher frontend. (mirror) HTML git clone git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/stagit-gopher/ DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit f2e11d669c0f5b2f75980d62d129728b44bba7b0 DIR parent b6154c444d011845fbe68f6ed2cde1b29880d54d HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Thu, 15 Jun 2017 19:39:29 +0200 rename this version stagit -> stagit-gopher to avoid confusion with the original HTML version (stagit) Diffstat: M Makefile | 27 ++++++++++++--------------- M README | 20 ++++++++++---------- R stagit-index.1 -> stagit-gopher-in… | 0 R stagit-index.c -> stagit-gopher-in… | 0 R stagit.1 -> stagit-gopher.1 | 0 R stagit.c -> stagit-gopher.c | 0 6 files changed, 22 insertions(+), 25 deletions(-) --- DIR diff --git a/Makefile b/Makefile @@ -1,19 +1,19 @@ include config.mk -NAME = stagit +NAME = stagit-gopher VERSION = 0.5 SRC = \ - stagit.c\ - stagit-index.c + stagit-gopher.c\ + stagit-gopher-index.c COMPATSRC = \ reallocarray.c\ strlcpy.c BIN = \ - stagit\ - stagit-index + stagit-gopher\ + stagit-gopher-index MAN1 = \ - stagit.1\ - stagit-index.1 + stagit-gopher.1\ + stagit-gopher-index.1 DOC = \ LICENSE\ README\ @@ -38,7 +38,7 @@ dist: rm -rf ${NAME}-${VERSION} mkdir -p ${NAME}-${VERSION} cp -f ${MAN1} ${HDR} ${SCRIPTS} ${SRC} ${COMPATSRC} ${DOC} \ - Makefile config.mk favicon.png logo.png style.css \ + Makefile config.mk \ example.sh \ ${NAME}-${VERSION} # make tarball @@ -48,11 +48,11 @@ dist: ${OBJ}: config.mk ${HDR} -stagit: stagit.o ${COMPATOBJ} - ${CC} -o $@ stagit.o ${COMPATOBJ} ${LDFLAGS} +stagit-gopher: stagit-gopher.o ${COMPATOBJ} + ${CC} -o $@ stagit-gopher.o ${COMPATOBJ} ${LDFLAGS} -stagit-index: stagit-index.o ${COMPATOBJ} - ${CC} -o $@ stagit-index.o ${COMPATOBJ} ${LDFLAGS} +stagit-gopher-index: stagit-gopher-index.o ${COMPATOBJ} + ${CC} -o $@ stagit-gopher-index.o ${COMPATOBJ} ${LDFLAGS} clean: rm -f ${BIN} ${OBJ} ${NAME}-${VERSION}.tar.gz @@ -77,9 +77,6 @@ uninstall: for f in ${BIN} ${SCRIPTS}; do rm -f ${DESTDIR}${PREFIX}/bin/$$f; done # removing example files. rm -f \ - ${DESTDIR}${PREFIX}/share/${NAME}/style.css\ - ${DESTDIR}${PREFIX}/share/${NAME}/favicon.png\ - ${DESTDIR}${PREFIX}/share/${NAME}/logo.png\ ${DESTDIR}${PREFIX}/share/${NAME}/example.sh\ ${DESTDIR}${PREFIX}/share/${NAME}/README -rmdir ${DESTDIR}${PREFIX}/share/${NAME} DIR diff --git a/README b/README @@ -1,7 +1,7 @@ -stagit -====== +stagit-gopher +============= -static git page generator +static git page generator for gopher Usage @@ -9,12 +9,12 @@ Usage Make files per repository: - $ mkdir -p htmldir && cd htmldir - $ stagit path-to-repo + $ mkdir -p gphdir && cd gphdir + $ stagit-gopher path-to-repo Make index file for repositories: - $ stagit-index repodir1 repodir2 repodir3 > index.html + $ stagit-gopher-index repodir1 repodir2 repodir3 > index.gph Install @@ -36,7 +36,7 @@ Dependencies Documentation ------------- -See man pages: stagit(1) and stagit-index(1). +See man pages: stagit-gopher(1) and stagit-gopher-index(1). Building a static binary @@ -85,10 +85,10 @@ Features - Log and diffstat per commit. - Show file tree with linkable line numbers. - Show references: local branches and tags. -- Detect README and LICENSE file from HEAD and link it as a webpage. -- Detect submodules (.gitmodules file) from HEAD and link it as a webpage. +- Detect README and LICENSE file from HEAD and link it as a page. +- Detect submodules (.gitmodules file) from HEAD and link it as a page. - Atom feed log (atom.xml). -- Make index page for multiple repositories with stagit-index. +- Make index page for multiple repositories with stagit-gopher-index. - After generating the pages (relatively slow) serving the files is very fast, simple and requires little resources (because the content is static), only a HTTP file server is required. DIR diff --git a/stagit-index.1 b/stagit-gopher-index.1 DIR diff --git a/stagit-index.c b/stagit-gopher-index.c DIR diff --git a/stagit.1 b/stagit-gopher.1 DIR diff --git a/stagit.c b/stagit-gopher.c