mirror of
https://git.ludikovsky.name/git/fugitive.git
synced 2024-09-28 14:25:26 +02:00
the preproc should be a unix filter
This commit is contained in:
parent
5ff0da0a71
commit
4d5ea71730
4
README
4
README
|
@ -71,8 +71,8 @@ fugitive README file
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
If you want your article to be preprocessed by an external tool (markdown,
|
If you want your article to be preprocessed by an external tool (markdown,
|
||||||
textile...) you need to set <em>preproc</em> to a command line that will take
|
textile...) you need to set <em>preproc</em> to a command line that will read
|
||||||
the file path as argument and write to stdout.
|
on stdin and write to stdout.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<h2>Usage</h2>
|
<h2>Usage</h2>
|
||||||
|
|
|
@ -197,7 +197,7 @@ for f in $added_files $new $modified_files; do
|
||||||
if [ "$preproc" != "" ]; then
|
if [ "$preproc" != "" ]; then
|
||||||
preproc_bak=`tempfile -p "fugitive" -d "$articles_dir"`
|
preproc_bak=`tempfile -p "fugitive" -d "$articles_dir"`
|
||||||
mv "$f" "$preproc_bak"
|
mv "$f" "$preproc_bak"
|
||||||
$preproc "$preproc_bak" > "$f"
|
($preproc) < "$preproc_bak" > "$f"
|
||||||
fi
|
fi
|
||||||
art="${f#$articles_dir/}"
|
art="${f#$articles_dir/}"
|
||||||
echo -n "[fugitive] Generating $public_dir/$art.html from $f... "
|
echo -n "[fugitive] Generating $public_dir/$art.html from $f... "
|
||||||
|
|
Loading…
Reference in a new issue