Chameleon

Chameleon Commit Details

Date:2012-02-28 08:59:45 (12 years 1 month ago)
Author:blackosx
Commit:1838
Parents: 1837
Message:Update to remove extra two characters from the end of the description which were left if after conversion.
Changes:
M/branches/blackosx/package/buildpkg.sh

File differences

branches/blackosx/package/buildpkg.sh
10421042
10431043
10441044
1045
1046
1045
1046
10471047
10481048
10491049
convertedFoundDescription=$( echo $foundDescription | textutil -convert rtf -encoding UTF-8 -stdin -stdout )
# Strip away unicode text up to and including '\f0\fs24 \cf0' - take what's after.
strippedConvertedFoundDescription="${convertedFoundDescription#*\\f0\\fs24 \\cf0 }"
# Remove last character from string and replace all backslashes with a double backslash.
fixStrippedConvertedFoundDescription=$( echo "${strippedConvertedFoundDescription%?}" | sed -e 's/\\/\\\\/g' )
# Remove last three characters from string and replace all backslashes with a double backslash.
fixStrippedConvertedFoundDescription=$( echo "${strippedConvertedFoundDescription%???}" | sed -e 's/\\/\\\\/g' )
#echo "$fixStrippedConvertedFoundDescription"
buildCodes[${#buildCodes[*]}]="$foundCode=$fixStrippedConvertedFoundDescription"
fi

Archive Download the corresponding diff file

Revision: 1838