mirror of
https://github.com/obgm/libcoap.git
synced 2026-10-27 05:01:23 +03:00
'make distclean' removes header files built from the .in files, which means that they are not available for different OS builds. The same is true for CMakeLists.txt. Remove the need for the .in files and update for libcoap revisions by using a new script scripts/fix_version.sh created from scripts/fix_version.sh.in. CI has been updated to check revisions have been updated in the appropriate places. Do not remove libcoap-3.sym and libcoap-3.map when doing 'make distclean' as they are git tracked files.
31 lines
614 B
Bash
Executable File
31 lines
614 B
Bash
Executable File
#/bin/bash
|
|
|
|
#
|
|
# Check if there are any missing file updates
|
|
#
|
|
|
|
make update-map-file > /dev/null
|
|
|
|
#
|
|
# Check for any version revision changes
|
|
#
|
|
. scripts/fix_version.sh
|
|
|
|
git diff > diff_check
|
|
|
|
WC=`cat diff_check | wc -l`
|
|
if [ $WC != 0 ] ; then
|
|
echo
|
|
echo "Please correct any header files for the appropriate revision"
|
|
echo "changes. It is possible to do this by running"
|
|
echo " . scripts/fix_version.sh"
|
|
echo "and then commit the changes to the header files."
|
|
echo
|
|
echo "Or run 'make update-map-file' and commit the changes to"
|
|
echo "libcoap-3.map and libcoap-3.sym."
|
|
echo
|
|
cat diff_check
|
|
exit 1
|
|
fi
|
|
exit 0
|