-createDictionaryPaths () {
- echo "Creating dictionaries ..."
-
- for i in stacks/*commands*xml
- do
- stacks/dependence.sh $i >/dev/null
- stack=`basename $i`
- if test "$stack" != "$BASE_PROT"
- then
- > .dictionary-${stack}
- for j in `cat ${i}.dep`
- do
- echo -n "${j} " >> .dictionary-${stack}
- done
- echo "stacks/$BASE_PROT stacks/${stack}" >> .dictionary-${stack}
- fi
- done
-
- # Create autonomous dictionaries:
- mkdir stacks/autonomous
- for i in `ls .dictionary-*`
- do
- name=$(echo $i | cut -d\- -f2)
- $STACKMGMT_EXEC `cat $i` >/dev/null
- mv result.xml stacks/autonomous/$name
- done
-
- # Cleanup:
- rm -f stacks/*.dep
- rm -f .dictionary-*
- rm -f example_diameter_stackManagement.trace*
-
- # Default:
- ln -s stacks/autonomous/commands_qosControl.xml dictionary.xml
-}
-