diff options
author | Fredrik Thulin <fredrik@thulin.net> | 2017-09-26 10:07:53 +0200 |
---|---|---|
committer | Fredrik Thulin <fredrik@thulin.net> | 2017-09-26 10:07:53 +0200 |
commit | 3c347aee80c71f448e4cd625bd54d4552cafb912 (patch) | |
tree | 93776b7a7c7fa5ff8bb21f61451fc61f2b1d5924 | |
parent | 42777dc6db1d395ccbde426962c66f201acebdee (diff) |
init
-rwxr-xr-x | make-wrl-files.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/make-wrl-files.sh b/make-wrl-files.sh new file mode 100755 index 0000000..f1d264d --- /dev/null +++ b/make-wrl-files.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +set -e +set -x + +basepath=$(dirname $(readlink -e $0)) +start=${PWD} +for d in *-PcbLib *-PcbDoc; do + ( + test -d "${d}/Root Entry/Models" && cd "${d}/Root Entry/Models" + test -d "${d}/Root Entry/Library/Models" && cd "${d}/Root Entry/Library/Models" + echo "Converting STEP files in ${PWD}..." + freecad ${basepath}/altium2kicad/step2wrl.FCMacro || true + ) +done + +# converting all the step files takes time and is interactive, so cache the result +find . -name '*.wrl' -print0 | xargs -0 tar zcvf ${basepath}/wrl-files.tar.gz |