6 BASE_PROTOCOL_XML=commands_baseProtocol.xml
21 echo "Usage: makeAutonomous.sh <incomplete dictionary> <stack management executable>"
24 echo " makeAutonomous.sh commands_qosControl.xml ./stack-mgmt"
26 echo " A new dictionary will be created: autonomous.commands_qosControl.xml"
36 [ "$COMMAND_XML" = "$BASE_PROTOCOL_XML" ] && _exit "$COMMAND_XML skipped !"
38 STACK_EXE=`readlink -f $2`
39 target=autonomous.${COMMAND_XML}
42 echo -n "Creating $target ... "
44 ./dependence.sh $COMMAND_XML >/dev/null
45 for i in `cat ${COMMAND_XML}.dep`; do echo -n "$i " >> .dict_list ; done
46 echo "$BASE_PROTOCOL_XML $COMMAND_XML" >> .dict_list
48 # Create autonomous dictionary:
49 $STACK_EXE `cat .dict_list` >/dev/null
54 rm -f example_diameter_stackManagement.trace*