bm

bibliography manager for latex
git clone git://git.ckyln.com/bm.git
Log | Files | Refs | README | LICENSE

commit fd986ac7fd394e2b1a78d2d10b1bf28d67128e46
parent 1c02baca83f6453c82669a1962432b2bbacdc61c
Author: Cem Keylan <cem@ckyln.com>
Date:   Mon, 21 Oct 2019 10:47:48 +0300

change versioning and install manpages

Diffstat:
MMakefile | 14+++++++++++---
Mbm | 6+++---
2 files changed, 14 insertions(+), 6 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,18 +1,26 @@ -PREFIX = /usr/local +include config.mk options: - @echo buid options for bm + @echo build options for bm @echo PREFIX = ${PREFIX} + @echo MANPREFIX = ${MANPREFIX} + @echo VERSION = ${VERSION} install: @echo installing executable file to ${DESTDIR}${PREFIX}/bin @mkdir -p ${DESTDIR}${PREFIX}/bin - @cp -f bm ${DESTDIR}${PREFIX}/bin + @ sed "s/VERSION/${VERSION}/g" < bm > ${DESTDIR}${PREFIX}/bin/bm @chmod 755 ${DESTDIR}${PREFIX}/bin/bm + @echo installing manual file to ${DESTDIR}${MANPREFIX}/man1 + @mkdir -p ${DESTDIR}${MANPREFIX}/man1 + @sed "s/VERSION/${VERSION}/g" < bm.1 > ${DESTDIR}${MANPREFIX}/man1/bm.1 + @chmod 644 ${DESTDIR}${MANPREFIX}/man1/bm.1 uninstall: @echo removing executable file from ${DESTDIR}${PREFIX}/bin @rm -f ${DESTDIR}${PREFIX}/bin/bm + @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1 + @rm -f ${DESTDIR}${MANPREFIX}/man1/bm.1 .PHONY: options install uninstall diff --git a/bm b/bm @@ -1,5 +1,5 @@ #!/bin/sh -VERSION=0.2 +V=VERSION ## bm, bibliography manager for LaTeX ## Copyright (C) 2019 Cem Keylan <cem@ckyln.com> @@ -125,12 +125,12 @@ EOF getversion() { - printf "${0##*/}-$VERSION\n" && exit + printf "${0##*/}-$V\n" && exit } [ -z "$1" ] && usage checkbib -agent="bm/$VERSION (https://git.ckyln.com/bm; mailto: cem@ckyln.com)" +agent="bm/$V (https://git.ckyln.com/bm; mailto: cem@ckyln.com)" case $1 in getbib) getbib "$2" "$3" ;; search) search "$2" ;;