Skip to content

Commit

Permalink
Run shfmt on genAxisConfigCutomPara.sh
Browse files Browse the repository at this point in the history
Changes to be committed:
    modified:   ethercatmcExApp/op/Boy/tools/genAxisConfigCutomPara.sh
  • Loading branch information
tboegi committed Aug 14, 2024
1 parent ad648a7 commit faebf8c
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions ethercatmcExApp/op/Boy/tools/genAxisConfigCutomPara.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,22 @@ FILE=$1
shift

cat ethercatmcaxisConfig.start ethercatmcaxisConfig-pils.mid >/tmp/$$ &&
y=420
y=420
# pick up all arguments
PARAM="$1"
while test "$PARAM" != ""; do
cmd=$(echo ./shiftopi.py --shifty $y)
echo $0: cmd=$cmd
eval $cmd <ethercatmcaxisConfigCustomPara.mid |
sed -e "s!CfgXXYYZZ!$PARAM!" >>/tmp/$$
shift
PARAM="$1"
y=$(($y + 20))
echo $0: cmd=$cmd
eval $cmd <ethercatmcaxisConfigCustomPara.mid |
sed -e "s!CfgXXYYZZ!$PARAM!" >>/tmp/$$
shift
PARAM="$1"
y=$(($y + 20))
done


touch "$FILE" &&
chmod +w "$FILE" &&
cat ethercatmcaxisConfig.end >>/tmp/$$ &&
cat ethercatmcaxisConfig.end >>/tmp/$$ &&
sed -e "s!ethercatmcaxisConfig-pils.opi!$FILE!" </tmp/$$ >"$FILE" &&
chmod -w "$FILE" &&
rm /tmp/$$

0 comments on commit faebf8c

Please sign in to comment.