Chameleon

Chameleon Commit Details

Date:2012-03-03 21:07:47 (7 years 10 months ago)
Author:JrCs
Commit:1846
Parents: 1845
Message:Update package builder
Changes:
M/branches/JrCs/package/Distribution
M/branches/JrCs/package/buildpkg.sh

File differences

branches/JrCs/package/Distribution
55
66
77
8
8
99
1010
1111
<options hostArchitectures='i386' allow-external-scripts="no"/>
<domains enable_anywhere="true"/>
<welcome file='Welcome.rtfd'/>
<welcome file='Welcome.html'/>
<license file="License.rtf" sla="EA0401"/>
<readme file='Description.html'/>
<conclusion file="Conclusion.rtfd"/>
branches/JrCs/package/buildpkg.sh
985985
986986
987987
988
988
989989
990
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
9911007
1008
9921009
9931010
9941011
995
1012
9961013
9971014
9981015
echo -e "\n</installer-gui-script>" >> "${PKG_BUILD_DIR}/${packagename}/Distribution"
# Create the Resources directory
ditto --noextattr --noqtn "${PKGROOT}/Resources" "${PKG_BUILD_DIR}/${packagename}/Resources"
ditto --noextattr --noqtn "${PKGROOT}/Resources/distribution" "${PKG_BUILD_DIR}/${packagename}/Resources"
# CleanUp the directory
# Make the translation
echo ""
echo "========= Translating Resources ========"
(cd "${PKGROOT}" && PERLLIB=${PKGROOT}/bin/po4a/lib \
bin/po4a/po4a \
--msgid-bugs-address po4a-devel@lists.alioth.debian.org \
--package-name chameleon \
--package-version 1.2.3 \
--variable PODIR="po" \
--variable TEMPLATES_DIR="Resources/templates" \
--variable OUTPUT_DIR="${PKG_BUILD_DIR}/${packagename}/Resources" \
${PKGROOT}/po4a-chameleon.cfg)
# Copy common files in english localisation directory
ditto --noextattr --noqtn "${PKGROOT}/Resources/common" "${PKG_BUILD_DIR}/${packagename}/Resources/en.lproj"
# CleanUp the directory
find "${PKG_BUILD_DIR}/${packagename}" \( -type d -name '.svn' \) -o -name '.DS_Store' -exec rm -rf {} \;
find "${PKG_BUILD_DIR}/${packagename}" -type d -depth -empty -exec rmdir {} \; # Remove empty directories
# Make substitutions for version, revision, stage, developers, credits, etc..
makeSubstitutions $( find "${PKG_BUILD_DIR}/${packagename}/Resources" -type f )
# Create the final package
pkgutil --flatten "${PKG_BUILD_DIR}/${packagename}" "${distributionFilePath}"

Archive Download the corresponding diff file

Revision: 1846