File: generate-fixtures

package info (click to toggle)
golang-github-niklasfasching-go-org 1.9.1-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 872 kB
  • sloc: sh: 142; makefile: 42
file content (14 lines) | stat: -rwxr-xr-x 419 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

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