~strahinja/table

523b8b45c9a41721061f247828b5d657a9e80bb8 — Страхиња Радић 4 months ago 6cd4feb v0.6.4
Add tsvtable (convenience script)

Signed-off-by: Страхиња Радић <contact@strahinja.org>
3 files changed, 5 insertions(+), 2 deletions(-)

M install.do
A tsvtable
M uninstall.do
M install.do => install.do +1 -1
@@ 4,7 4,7 @@ BINDIR=$PREFIX/bin
#DOCDIR=$PREFIX/share/doc/table
MANDIR=$PREFIX/share/man/man1
#install -d $DOCDIR
for executable in table tablep; do
for executable in table tablep tsvtable; do
	install -Dm 0755 "${executable}" "${BINDIR}/${executable}"
done
#install -Dm 0644 table.pdf "${DOCDIR}/table.pdf"

A tsvtable => tsvtable +2 -0
@@ 0,0 1,2 @@
#!/bin/sh
table -d "$(printf '\t')" "$@"

M uninstall.do => uninstall.do +2 -1
@@ 3,4 3,5 @@ PREFIX=/usr/local
BINDIR=$PREFIX/bin
DOCDIR=$PREFIX/share/doc/table
MANDIR=$PREFIX/share/man/man1
rm -f $BINDIR/table $BINDIR/tablep $DOCDIR/table.pdf $MANDIR/table.1.gz
rm -f $BINDIR/table $BINDIR/tablep $BINDIR/tsvtable $DOCDIR/table.pdf \
	$MANDIR/table.1.gz