kunt

golang IRC bot
git clone git@git.2f30.org/kunt.git
Log | Files | Refs | LICENSE

encdb (269B)


      1 #!/bin/sh
      2 
      3 if [ $# -eq 1 ]; then
      4 	key=$1
      5 	for i in quotes/*; do
      6 		../../benc/benc ${key} "$i" > "$i".tmp &&
      7 			mv "$i".tmp "$i"
      8 	done
      9 	for i in urls/*; do
     10 		../../benc/benc ${key} "$i" > "$i".tmp &&
     11 			mv "$i".tmp "$i"
     12 	done
     13 else
     14 	echo usage: encdb key 1>&2
     15 	exit 1
     16 fi