1# #-- 06-ianaports.test --# 2# source the master var file when it's there 3[ -f ../.tpkg.var.master ] && source ../.tpkg.var.master 4# use .tpkg.var.test for in test variable passing 5[ -f .tpkg.var.test ] && source .tpkg.var.test 6 7PRE="../.." 8. ../common.sh 9 10mkdir util 11get_make 12echo "> $MAKE -f $PRE/Makefile iana_update" 13$MAKE -f $PRE/Makefile iana_update 14if test $? -ne 0; then 15 echo "cannot iana update" 16 exit 1 17fi 18 19diff -u $PRE/util/iana_ports.inc util/iana_ports.inc 20if test $? -ne 0; then 21 echo "IANA assigned ports have updated, make iana_update and commit" 22 echo "cp util/iana_ports.inc $PRE/util/iana_ports.inc" 23 cp util/iana_ports.inc $PRE/util/iana_ports.inc 24 exit 1 25fi 26 27exit 0 28