чување 523b8b45c9a41721061f247828b5d657a9e80bb8
родитељ 6cd4febeca16c93733024649a966706993cdf106
Аутор: Страхиња Радић <contact@strahinja.org>
Датум: Tue, 2 Aug 2022 15:40:09 +0200
Add tsvtable (convenience script)
Signed-off-by: Страхиња Радић <contact@strahinja.org>
Diffstat:
измењених датотека: 3, додавања: 5(+), брисања: 2(-)
diff --git a/install.do b/install.do
@@ -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"
diff --git a/tsvtable b/tsvtable
@@ -0,0 +1,2 @@
+#!/bin/sh
+table -d "$(printf '\t')" "$@"
diff --git a/uninstall.do b/uninstall.do
@@ -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