From 6807d9b8a2772814ab7705677d462b241ebefeb0 Mon Sep 17 00:00:00 2001 From: William Jagels Date: Tue, 8 Sep 2015 11:46:17 -0400 Subject: [PATCH] Add a makefile Running the makefile will generate a csv list of the upcoming and past hackathons. Running make upcoming or make past will only generate the respective csv files. Running make clean removes any csv files generated by make. This has been tested on GNU sed and GNU make. It may behave differently on non GNU systems such as OSX. --- Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..a475c42 --- /dev/null +++ b/Makefile @@ -0,0 +1,12 @@ +all: upcoming past + +upcoming: + echo 'name,url,location,dates' > upcoming.csv + cat README.md | sed 's/^| \[\(.*\)\](\(.*\)) | \(.*\) | \(.*\) |$$/"\1","\2","\3","\4"/;tx;d;:x' >> upcoming.csv + +past: + echo 'name,url,location,dates' > past.csv + cat Past-Hackathons.md | sed 's/^| \[\(.*\)\](\(.*\)) | \(.*\) | \(.*\) |$$/"\1","\2","\3","\4"/;tx;d;:x' >> past.csv + +clean: + rm upcoming.csv past.csv