omoidasu (1121B)
1 #!/bin/sh 2 3 # create a config file in the current directory 4 5 if [ -f ./config ]; then 6 echo "config already exists" 7 exit 1 8 fi 9 10 cat > config <<EOF 11 # omoidasu config 12 13 # program used to determine the location of the cards requested by oboeru 14 FETCHCARD=fetchcard 15 16 # program used to convert the cards into single line input apporiate 17 # for oboeruhttp. should output "%s\t%s" (notice the "\t") 18 CONVERTCARD=card2html 19 20 # futher filter for card after CONVERTCARD 21 FILTER=rubify 22 23 # fmt for timestamping new cards. needs to be the same format that was 24 # used in config.h when compiling oboeru. backup timestamp can be anything 25 TIMEFMT="+%Y年%m月%d日%H時%M分" 26 27 # ledger field delimiter 28 DELIM="\t" 29 30 # templates to use for new cards. the variables can be commented or empty 31 # the default names will be "front" and "back" 32 FRONT_TEMP="front.md" 33 BACK_TEMP="back.md" 34 35 # port to run oboeruhttp on 36 PORT=6969 37 38 # html strings to pass to oboeruhttp 39 PASS="当たり" 40 FAIL="外れ" 41 QUIT="止める" 42 SHOW="示す" 43 BYE="(=^ᆺ^)ノ<br>バイバイ~" 44 45 # use these to overwrite the default env variables if you want 46 #EDITOR=vis 47 #VISUAL=vis 48 EOF