Skip to content

Commit

Permalink
Pass lint
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbrightwell committed Sep 2, 2024
1 parent d15990c commit c2bf39c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
7 changes: 2 additions & 5 deletions make-indexes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -358,11 +358,8 @@ fi
echo Adding warnings and project description to each autogenerated file...
find . -name "$INDEX" -exec perl -pi -e 'print "<!-- AUTOGENERATED FILE: DO NOT EDIT -->\n\n# {{ site.github.project_tagline }}\n\n" if $. == 1' {} \;

# Copy any other top level files needed
if [[ "$AMWA_ID" == "NMOS" ]]; then
for i in "themes.md"; do
echo "Copying $i"
cp "../$i" .
done
echo "Copying other top level files"
cp "../themes.md" .
fi

6 changes: 1 addition & 5 deletions make-specs-json.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,12 @@ echo "Getting spec info"
for id in $(yaml2json ../spec_list.yml | jq -r '.[]'); do
echo "$id"
# themes for this id to mix in
id_themes=$(echo $themes | jq "[ .[] | select(.members[] == \"$id\").name ]")
id_themes=$(echo "$themes" | jq "[ .[] | select(.members[] == \"$id\").name ]")
wget -O- -q "https://specs.amwa.tv/${id,,}/spec.json" | jq ".themes = $id_themes" >> "$TMP/specs"
done
echo

echo "Making specs.json"
jq --slurp . "$TMP/specs" > _data/specs.json
# echo "Making specs-by-theme.json"
# for theme in $(yaml2json ../themes.yml | jq -r '.[]'); do
# echo "$theme"
# done

rm -r "$TMP"

0 comments on commit c2bf39c

Please sign in to comment.