git: 9front

Download patch

ref: 2d6b61c1d8cf35b839f7917b2af42ae2d1b01653
parent: 8a28abeb83a1727444c207227a3cf392e78a089a
author: stanley lieber <stanley.lieber@gmail.com>
date: Thu Aug 18 10:40:56 EDT 2011

bullshit: add support for arbitrary database files

--- a/rc/bin/bullshit
+++ b/rc/bin/bullshit
@@ -1,4 +1,8 @@
 #!/bin/rc
+if(~ $#1 0)
+	file=/lib/bullshit
+if not
+	file=$1
 awk '
 function min(a, b){
 	if(a > b)
@@ -48,4 +52,4 @@
 		printf "%s ", end[int(rand() * nend)]
 	print ""
 }
-' /lib/bullshit
+' $file
--