9 if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ]
15 if [ $(grep -c " exec=\"/opt/" $INPUT) -gt 0 ] || [ $(grep -c "<icon>/opt/" $INPUT) -gt 0 ]
20 if [ $(grep -c "install-location=" $INPUT) -gt 0 ]
28 if [ $(grep -c "<service-application" $INPUT) -gt 0 ]
30 if [ $INSTALLLOCATION -eq 1 ]
32 /bin/sed -e "s#<icon>#<icon>/opt/usr/apps/$PKGID/shared/res/#g" \
33 -e "s#exec=\"#exec=\"$USRAPPDIR/$PKGID/bin/#g" \
34 -e "/<feature.*>/ d" -e "/<feature /,/<\/feature>/ d" \
35 -e "s#\(<manifest[^>]*\)>#\1 storeclient-id=\"$CLIENTID\">#" \
36 -e "s#package=\"#type=\"coretpk\" package=\"#g" $INPUT > $OUTPUT
38 /bin/sed -e "s#<icon>#<icon>/opt/usr/apps/$PKGID/shared/res/#g" \
39 -e "s#exec=\"#exec=\"$USRAPPDIR/$PKGID/bin/#g" \
40 -e "/<feature.*>/ d" -e "/<feature /,/<\/feature>/ d" \
41 -e "s#\(<manifest[^>]*\)>#\1 install-location=\"internal-only\">#" \
42 -e "s#\(<manifest[^>]*\)>#\1 storeclient-id=\"$CLIENTID\">#" \
43 -e "s#package=\"#type=\"coretpk\" package=\"#g" $INPUT > $OUTPUT
46 if [ $INSTALLLOCATION -eq 1 ]
48 /bin/sed -e "s#<icon>#<icon>/opt/usr/apps/$PKGID/shared/res/#g" \
49 -e "s#exec=\"#exec=\"$USRAPPDIR/$PKGID/bin/#g" \
50 -e "/<feature.*>/ d" -e "/<feature /,/<\/feature>/ d" \
51 -e "s#\(<manifest[^>]*\)>#\1 storeclient-id=\"$CLIENTID\">#" \
52 -e "s#package=\"#type=\"coretpk\" package=\"#g" $INPUT > $OUTPUT
54 /bin/sed -e "s#<icon>#<icon>/opt/usr/apps/$PKGID/shared/res/#g" \
55 -e "s#exec=\"#exec=\"$USRAPPDIR/$PKGID/bin/#g" \
56 -e "/<feature.*>/ d" -e "/<feature /,/<\/feature>/ d" \
57 -e "s#\(<manifest[^>]*\)>#\1 install-location=\"auto\">#" \
58 -e "s#\(<manifest[^>]*\)>#\1 storeclient-id=\"$CLIENTID\">#" \
59 -e "s#package=\"#type=\"coretpk\" package=\"#g" $INPUT > $OUTPUT
63 if [ $(grep -c "<service-application" $INPUT) -gt 0 ]
65 if [ $INSTALLLOCATION -eq 1 ]
67 /bin/sed -e "s#<icon>#<icon>/opt/usr/apps/$PKGID/shared/res/#g" \
68 -e "/<feature.*>/ d" -e "/<feature /,/<\/feature>/ d" \
69 -e "s#exec=\"#exec=\"$USRAPPDIR/$PKGID/bin/#g" \
70 -e "s#package=\"#type=\"coretpk\" package=\"#g" $INPUT > $OUTPUT
72 /bin/sed -e "s#<icon>#<icon>/opt/usr/apps/$PKGID/shared/res/#g" \
73 -e "s#exec=\"#exec=\"$USRAPPDIR/$PKGID/bin/#g" \
74 -e "/<feature.*>/ d" -e "/<feature /,/<\/feature>/ d" \
75 -e "s#\(<manifest[^>]*\)>#\1 install-location=\"internal-only\">#" \
76 -e "s#package=\"#type=\"coretpk\" package=\"#g" $INPUT > $OUTPUT
79 if [ $INSTALLLOCATION -eq 1 ]
81 /bin/sed -e "s#<icon>#<icon>/opt/usr/apps/$PKGID/shared/res/#g" \
82 -e "/<feature.*>/ d" -e "/<feature /,/<\/feature>/ d" \
83 -e "s#exec=\"#exec=\"$USRAPPDIR/$PKGID/bin/#g" \
84 -e "s#package=\"#type=\"coretpk\" package=\"#g" $INPUT > $OUTPUT
86 /bin/sed -e "s#<icon>#<icon>/opt/usr/apps/$PKGID/shared/res/#g" \
87 -e "s#exec=\"#exec=\"$USRAPPDIR/$PKGID/bin/#g" \
88 -e "/<feature.*>/ d" -e "/<feature /,/<\/feature>/ d" \
89 -e "s#\(<manifest[^>]*\)>#\1 install-location=\"auto\">#" \
90 -e "s#package=\"#type=\"coretpk\" package=\"#g" $INPUT > $OUTPUT