nnnotes/parse/inject.sh

17 lines
248 B
Bash
Raw Normal View History

2014-08-25 12:54:27 +02:00
#!/bin/bash
for i in *.mmd; do
f=$i
done
if [[ -z '$f' ]]; then
echo "No mmd file (markdown source file) in directory... Aborting.";
exit;
fi
# inject new nnnotes in source file
compare.sh | inject.py $f
# update index
make --quiet index