sfeed

Simple RSS and Atom feed parser
git clone https://git.sinitax.com/codemadness/sfeed
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

commit 4504d10579e3734045eff159599ca4757001b3a9
parent 26c97bd203f6cf5aa33b65e53db19662e5cec4cf
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sun, 20 Mar 2016 17:49:27 +0100

Makefile: improve make dist, bump version to 0.9.1

Diffstat:
MCHANGELOG | 8++++++++
MMakefile | 16++++++++--------
2 files changed, 16 insertions(+), 8 deletions(-)

diff --git a/CHANGELOG b/CHANGELOG @@ -1,3 +1,11 @@ +v0.9.1 +====== + +* Improved `make dist` rule in Makefile: don't build binaries before packaging + the source files. Package the source files in the relative path + sfeed-VERSION/. + + v0.9 ==== diff --git a/Makefile b/Makefile @@ -1,7 +1,7 @@ include config.mk NAME = sfeed -VERSION = 0.9 +VERSION = 0.9.1 BIN = \ sfeed\ sfeed_frames\ @@ -68,18 +68,18 @@ ${LIBXML}: ${LIBXMLOBJ} ${AR} rc $@ $? ${RANLIB} $@ -dist: $(BIN) - rm -rf release/${VERSION} - mkdir -p release/${VERSION} +dist: + rm -rf ${NAME}-${VERSION} + mkdir -p ${NAME}-${VERSION} cp -f ${MAN1} ${MAN5} ${DOC} ${HDR} \ ${SRC} ${LIBXMLSRC} ${LIBUTILSRC} ${SCRIPTS} \ Makefile config.mk \ sfeedrc.example style.css \ - release/${VERSION}/ + ${NAME}-${VERSION} # make tarball - rm -f sfeed-${VERSION}.tar.gz - (cd release/${VERSION}; \ - tar -czf ../../sfeed-${VERSION}.tar.gz .) + tar -cf - ${NAME}-${VERSION} | \ + gzip -c > ${NAME}-${VERSION}.tar.gz + rm -rf ${NAME}-${VERSION} clean: rm -f ${BIN} ${OBJ} ${LIB}