File: check-missing-updates.sh

package info (click to toggle)
libcoap3 4.3.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,924 kB
  • sloc: ansic: 59,968; makefile: 1,280; sh: 938; python: 6
file content (30 lines) | stat: -rwxr-xr-x 614 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#/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