mirror of https://github.com/rusefi/rusefi-1.git
Move pinouts to pages.rusefi.com #170
This commit is contained in:
parent
875602d1fc
commit
b24ea754f2
|
@ -13,7 +13,7 @@ else
|
||||||
fi
|
fi
|
||||||
# yq 3 and 4 have incompatible syntax. We use yq 4.
|
# yq 3 and 4 have incompatible syntax. We use yq 4.
|
||||||
echo ${I_AM} invoking yq version
|
echo ${I_AM} invoking yq version
|
||||||
yq -V
|
yqdir/yq -V
|
||||||
for c in $CONNECTORS; do
|
for c in $CONNECTORS; do
|
||||||
echo "${I_AM} processing "$c
|
echo "${I_AM} processing "$c
|
||||||
DIR="pinouts/"$(echo $c | tr '/' '\n' | tail -n +5 | head -n -2 | tr '\n' '/')
|
DIR="pinouts/"$(echo $c | tr '/' '\n' | tail -n +5 | head -n -2 | tr '\n' '/')
|
||||||
|
@ -22,16 +22,16 @@ for c in $CONNECTORS; do
|
||||||
echo "${I_AM} NAME "$NAME
|
echo "${I_AM} NAME "$NAME
|
||||||
mkdir -p $DIR
|
mkdir -p $DIR
|
||||||
if [ -f $DIR/index.html ]; then
|
if [ -f $DIR/index.html ]; then
|
||||||
bash misc/pinout-gen/append.sh "$(yq -j e $c)" $DIR/index.html
|
bash misc/pinout-gen/append.sh "$(yqdir/yq -j e $c)" $DIR/index.html
|
||||||
else
|
else
|
||||||
bash misc/pinout-gen/gen.sh "$(yq -j e $c)" $DIR/index.html
|
bash misc/pinout-gen/gen.sh "$(yqdir/yq -j e $c)" $DIR/index.html
|
||||||
fi
|
fi
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "${I_AM} something is broken"
|
echo "${I_AM} something is broken"
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
file $DIR/index.html
|
file $DIR/index.html
|
||||||
IMG=$(yq e '.info.image.file' $c)
|
IMG=$(yqdir/yq e '.info.image.file' $c)
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue