File:  [mozdev] / contactphotos /
Revision 1.3: download - view: text, annotated - select for diffs - revision graph
Sat Jun 25 21:54:17 2011 UTC (6 years, 4 months ago) by joshgeenen
Branches: MAIN
CVS tags: HEAD
Added version 0.1.11 with new locales


# 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 <>