Fixed EOLs.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11753 110e8d01-0319-4d1e-a829-52ad28d1bb01
This commit is contained in:
Giovanni Di Sirio 2018-03-14 18:19:21 +00:00
parent 4738ea4a13
commit b88dd92734
3 changed files with 66 additions and 66 deletions

View File

@ -1,22 +1,22 @@
#!/bin/bash
if [ $# -eq 0 ]
then
find ../.. -name "chconf.h" -exec bash update_chconf_nil.sh "{}" \;
elif [ $# -eq 1 ]
then
if egrep -q "_CHIBIOS_NIL_CONF_" $1
then
echo Processing: $1
cat $1 | egrep -e "\#define\s+[a-zA-Z0-9_]*\s+[a-zA-Z0-9_]" | cut --bytes=9- - | sed 's/ */=/g' > ./values.txt
if ! fmpp -q -C chconf_nil.fmpp
then
echo
echo "aborted"
exit 1
fi
cp ./chconf.h $1
rm ./chconf.h ./values.txt
fi
else
echo "illegal number of arguments"
fi
#!/bin/bash
if [ $# -eq 0 ]
then
find ../.. -name "chconf.h" -exec bash update_chconf_nil.sh "{}" \;
elif [ $# -eq 1 ]
then
if egrep -q "_CHIBIOS_NIL_CONF_" $1
then
echo Processing: $1
cat $1 | egrep -e "\#define\s+[a-zA-Z0-9_]*\s+[a-zA-Z0-9_]" | cut --bytes=9- - | sed 's/ */=/g' > ./values.txt
if ! fmpp -q -C chconf_nil.fmpp
then
echo
echo "aborted"
exit 1
fi
cp ./chconf.h $1
rm ./chconf.h ./values.txt
fi
else
echo "illegal number of arguments"
fi

View File

@ -1,22 +1,22 @@
#!/bin/bash
if [ $# -eq 0 ]
then
find ../.. -name "chconf.h" -exec bash update_chconf.sh "{}" \;
elif [ $# -eq 1 ]
then
if egrep -q "_CHIBIOS_RT_CONF_" $1
then
echo Processing: $1
cat $1 | egrep -e "\#define\s+[a-zA-Z0-9_]*\s+[a-zA-Z0-9_]" | cut --bytes=9- - | sed 's/ */=/g' > ./values.txt
if ! fmpp -q -C chconf_rt.fmpp
then
echo
echo "aborted"
exit 1
fi
cp ./chconf.h $1
rm ./chconf.h ./values.txt
fi
else
echo "illegal number of arguments"
fi
#!/bin/bash
if [ $# -eq 0 ]
then
find ../.. -name "chconf.h" -exec bash update_chconf_rt.sh "{}" \;
elif [ $# -eq 1 ]
then
if egrep -q "_CHIBIOS_RT_CONF_" $1
then
echo Processing: $1
cat $1 | egrep -e "\#define\s+[a-zA-Z0-9_]*\s+[a-zA-Z0-9_]" | cut --bytes=9- - | sed 's/ */=/g' > ./values.txt
if ! fmpp -q -C chconf_rt.fmpp
then
echo
echo "aborted"
exit 1
fi
cp ./chconf.h $1
rm ./chconf.h ./values.txt
fi
else
echo "illegal number of arguments"
fi

View File

@ -1,22 +1,22 @@
#!/bin/bash
if [ $# -eq 0 ]
then
find ../.. -name "halconf.h" -exec bash update_halconf.sh "{}" \;
elif [ $# -eq 1 ]
then
# if egrep -q "" $1
# then
echo Processing: $1
cat $1 | egrep -e "\#define\s+[a-zA-Z0-9_]*\s+[a-zA-Z0-9_]" | cut --bytes=9- - | sed 's/ */=/g' > ./values.txt
if ! fmpp -q -C halconf.fmpp
then
echo
echo "aborted"
exit 1
fi
cp ./halconf.h $1
rm ./halconf.h ./values.txt
# fi
else
echo "illegal number of arguments"
fi
#!/bin/bash
if [ $# -eq 0 ]
then
find ../.. -name "halconf.h" -exec bash update_halconf.sh "{}" \;
elif [ $# -eq 1 ]
then
# if egrep -q "" $1
# then
echo Processing: $1
cat $1 | egrep -e "\#define\s+[a-zA-Z0-9_]*\s+[a-zA-Z0-9_]" | cut --bytes=9- - | sed 's/ */=/g' > ./values.txt
if ! fmpp -q -C halconf.fmpp
then
echo
echo "aborted"
exit 1
fi
cp ./halconf.h $1
rm ./halconf.h ./values.txt
# fi
else
echo "illegal number of arguments"
fi