Add Makefile-s - csvtofsv - Convert CSV to FSV (`fs' (0x1c) as FS and `rs' (0x1e) as RS)
(HTM) hg clone https://bitbucket.org/iamleot/csvtofsv
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) changeset c4a06b0cfc35a2777bdc8ea14f43e45dd31ce6c5
(DIR) parent 4e2c2f36e4096c4d84d31a4db1d8dd682aabe52a
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Tue, 25 Jun 2019 23:43:12
Add Makefile-s
Diffstat:
Makefile | 8 ++++++++
t/Makefile | 14 ++++++++++++++
2 files changed, 22 insertions(+), 0 deletions(-)
---
diff -r 4e2c2f36e409 -r c4a06b0cfc35 Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Makefile Tue Jun 25 23:43:12 2019 +0200
@@ -0,0 +1,8 @@
+PROG= csvtofsv
+
+MKMAN= no
+
+check: csvtofsv
+ cd ${.CURDIR}/t && ${MAKE} check
+
+.include <bsd.prog.mk>
diff -r 4e2c2f36e409 -r c4a06b0cfc35 t/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/t/Makefile Tue Jun 25 23:43:12 2019 +0200
@@ -0,0 +1,14 @@
+TESTS= 01 02
+
+CSVTOFSV?= ../csvtofsv
+
+clean:
+.for t in ${TESTS}
+ rm -f ${t}.tmp.fsv
+.endfor
+
+check:
+.for t in ${TESTS}
+ ${CSVTOFSV} < "${t}.csv" > "${t}.tmp.fsv"
+ cmp "${t}.fsv" "${t}.tmp.fsv"
+.endfor