8 if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ]
14 if [ $(grep -c " exec=\"/opt/" $INPUT) -gt 0 ] || [ $(grep -c "<icon>/opt/" $INPUT) -gt 0 ]
19 if [ $(grep -c "install-location=" $INPUT) -gt 0 ]
27 if [ $(grep -c "<service-application" $INPUT) -gt 0 ]
29 if [ $INSTALLLOCATION -eq 1 ]
31 /bin/sed -e "s#<icon>#<icon>/opt/usr/apps/$PKGID/shared/res/#g" \
32 -e "s#exec=\"#exec=\"/opt/usr/apps/$PKGID/bin/#g" \
33 -e "/<feature.*>/ d" -e "/<feature /,/<\/feature>/ d" \
34 -e "s#\(<manifest[^>]*\)>#\1 storeclient-id=\"$CLIENTID\">#" \
35 -e "s#package=\"#type=\"coretpk\" package=\"#g" $INPUT > $OUTPUT
37 /bin/sed -e "s#<icon>#<icon>/opt/usr/apps/$PKGID/shared/res/#g" \
38 -e "s#exec=\"#exec=\"/opt/usr/apps/$PKGID/bin/#g" \
39 -e "/<feature.*>/ d" -e "/<feature /,/<\/feature>/ d" \
40 -e "s#\(<manifest[^>]*\)>#\1 install-location=\"internal-only\">#" \
41 -e "s#\(<manifest[^>]*\)>#\1 storeclient-id=\"$CLIENTID\">#" \
42 -e "s#package=\"#type=\"coretpk\" package=\"#g" $INPUT > $OUTPUT
45 if [ $INSTALLLOCATION -eq 1 ]
47 /bin/sed -e "s#<icon>#<icon>/opt/usr/apps/$PKGID/shared/res/#g" \
48 -e "s#exec=\"#exec=\"/opt/usr/apps/$PKGID/bin/#g" \
49 -e "/<feature.*>/ d" -e "/<feature /,/<\/feature>/ d" \
50 -e "s#\(<manifest[^>]*\)>#\1 storeclient-id=\"$CLIENTID\">#" \
51 -e "s#package=\"#type=\"coretpk\" package=\"#g" $INPUT > $OUTPUT
53 /bin/sed -e "s#<icon>#<icon>/opt/usr/apps/$PKGID/shared/res/#g" \
54 -e "s#exec=\"#exec=\"/opt/usr/apps/$PKGID/bin/#g" \
55 -e "/<feature.*>/ d" -e "/<feature /,/<\/feature>/ d" \
56 -e "s#\(<manifest[^>]*\)>#\1 install-location=\"auto\">#" \
57 -e "s#\(<manifest[^>]*\)>#\1 storeclient-id=\"$CLIENTID\">#" \
58 -e "s#package=\"#type=\"coretpk\" package=\"#g" $INPUT > $OUTPUT
62 if [ $(grep -c "<service-application" $INPUT) -gt 0 ]
64 if [ $INSTALLLOCATION -eq 1 ]
66 /bin/sed -e "s#<icon>#<icon>/opt/usr/apps/$PKGID/shared/res/#g" \
67 -e "/<feature.*>/ d" -e "/<feature /,/<\/feature>/ d" \
68 -e "s#exec=\"#exec=\"/opt/usr/apps/$PKGID/bin/#g" \
69 -e "s#package=\"#type=\"coretpk\" package=\"#g" $INPUT > $OUTPUT
71 /bin/sed -e "s#<icon>#<icon>/opt/usr/apps/$PKGID/shared/res/#g" \
72 -e "s#exec=\"#exec=\"/opt/usr/apps/$PKGID/bin/#g" \
73 -e "/<feature.*>/ d" -e "/<feature /,/<\/feature>/ d" \
74 -e "s#\(<manifest[^>]*\)>#\1 install-location=\"internal-only\">#" \
75 -e "s#package=\"#type=\"coretpk\" package=\"#g" $INPUT > $OUTPUT
78 if [ $INSTALLLOCATION -eq 1 ]
80 /bin/sed -e "s#<icon>#<icon>/opt/usr/apps/$PKGID/shared/res/#g" \
81 -e "/<feature.*>/ d" -e "/<feature /,/<\/feature>/ d" \
82 -e "s#exec=\"#exec=\"/opt/usr/apps/$PKGID/bin/#g" \
83 -e "s#package=\"#type=\"coretpk\" package=\"#g" $INPUT > $OUTPUT
85 /bin/sed -e "s#<icon>#<icon>/opt/usr/apps/$PKGID/shared/res/#g" \
86 -e "s#exec=\"#exec=\"/opt/usr/apps/$PKGID/bin/#g" \
87 -e "/<feature.*>/ d" -e "/<feature /,/<\/feature>/ d" \
88 -e "s#\(<manifest[^>]*\)>#\1 install-location=\"auto\">#" \
89 -e "s#package=\"#type=\"coretpk\" package=\"#g" $INPUT > $OUTPUT