make: Allow generating single fixture
This commit is contained in:
parent
9d1e3cf24f
commit
980dd2038d
2 changed files with 9 additions and 4 deletions
|
@ -1,9 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
for org_file in org/testdata/*.org; do
|
||||
org_files="$(ls org/testdata/*.org)"
|
||||
if [[ ! -z $1 ]]; then
|
||||
org_files="$1"
|
||||
else
|
||||
(cd blorg && find testdata/public -type f | sort -u | xargs md5sum > testdata/public.md5)
|
||||
fi
|
||||
|
||||
for org_file in $org_files; do
|
||||
echo $org_file
|
||||
./go-org render $org_file html > org/testdata/$(basename $org_file .org).html
|
||||
./go-org render $org_file org > org/testdata/$(basename $org_file .org).pretty_org
|
||||
done
|
||||
|
||||
(cd blorg && find testdata/public -type f | sort -u | xargs md5sum > testdata/public.md5)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue