2 # the target is the file that needs its manifest stuffed into the file
3 # itself. the where parameter tells us what index to use when stuffing it.
6 if [ -z "$WIN32_MANIFEST_FILE" ]; then
7 WIN32_MANIFEST_FILE=$CLAM_SCRIPTS/cpp/ms_manifests/security_manifest.txt
9 for ((count=1 ; count <= 10; count++)); do
11 if [ -f "$target.manifest" -a -f "$target" ]; then
12 bash $BUILD_SCRIPTS_PATH/wrapdoze.sh mt -manifest $target.manifest $WIN32_MANIFEST_FILE -outputresource:$target\;$where >/dev/null
14 elif [ -f "$target" ]; then
15 bash $BUILD_SCRIPTS_PATH/wrapdoze.sh mt -manifest $WIN32_MANIFEST_FILE -outputresource:$target\;$where >/dev/null
18 echo skipping manifest generation for $target.
19 if [ ! -f "$target.manifest" ]; then echo manifest file was missing.; fi
20 if [ ! -f "$target" ]; then echo main file was missing.; fi
23 if [ $error_val -ne 0 ]; then
24 echo "Error attaching manifest to $target at try #$count."
29 if [ $error_val -ne 0 ]; then
30 echo There was an error attaching manifest to $target.