mirror of
https://github.com/openharmony/third_party_libcoap.git
synced 2026-08-27 03:12:16 -04:00
6e406d242a
Signed-off-by: ye-xiaokang123 <yexiaokang3@huawei.com>
31 lines
614 B
Bash
31 lines
614 B
Bash
#/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
|