File:  [mozdev] / contactphotos /
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Wed Jan 26 22:10:47 2011 UTC (8 years ago) by joshgeenen
Branches: MAIN
CVS tags: HEAD
Committing version 0.1.9 with 3 new locales: sv-SE by Mikael Hiort af Orn?s, cs by Michal Stanke, and zh-CN by yfdyh000


# Contact Photos build script
# This script builds Contact Photos into an xpi that may be installed in
# compatible applications (Thunderbird & Seamonkey).

#***Start editing here***

# NOTE: The VERSION here is just used for the package name
# Edit install.rdf to change the actual VERSION
# Dest should be absolute or relative to SRC_DIR

#***Stop editing here***

# Make sure the path to $DEST exists
if [ ! -d $(dirname $DEST) ]; then
  echo "The path to $DEST does not exist, trying mkdir"
  mkdir $(dirname $DEST)
  if [ "$?" != 0 ]; then
    exit 1

# remove the existing zip file
if [ -f $DEST ]; then
  echo "Removing previous zip file at:"
  echo $DEST
  rm -f $DEST


# finds all files in locale/ excluding CVS directories and CVS files
LOCALE_FILES=$(find locale/ -maxdepth 2 -type f ! -name CVS ! -name Repository ! -name Root ! -name Entries)

# zip the source files
zip -r $DEST content/*.* defaults/preferences/*.* $LOCALE_FILES skin/*.* install.rdf chrome.manifest

# quit if zip failed
if [ "$?" != 0 ]; then
  echo "ERROR: zip failed, check '$DEST'"
  exit 1

echo "Package ready at:"
echo $DEST
echo "MD5 checksum:"
md5sum $DEST

FreeBSD-CVSweb <>