File create-tar.sh of Package seamonkey.openSUSE_Leap_15.1_Update
#!/bin/bash
BRANCH="2_53_5_1_final"
VERSION="2.53.5.1"
MAJOR_VERSION="2.53"
SRC_TAR_EXCLUDE_PATHS="\
--exclude=.hg* \
--exclude=.git \
--exclude=.gitattributes \
--exclude=.gitkeep \
--exclude=.gitmodules \
--exclude=CVS \
--exclude=.cvs* \
--exclude=.mozconfig* \
--exclude=*.pyc \
--exclude=mozilla/Makefile \
--exclude=mozilla/dist"
# use parallel compression, if available
COMPRESSION='-J'
command -v pixz >/dev/null 2>&1 && COMPRESSION='-Ipixz'
echo "Cloning Comm Repo for SeaMonkey ${MAJOR_VERSION}..."
git clone -b ${BRANCH} https://gitlab.com/seamonkey-project/seamonkey-${MAJOR_VERSION}-comm.git seamonkey || exit 1
pushd seamonkey
echo "Cloning Mozilla Repo for SeaMonkey ${MAJOR_VERSION}..."
git clone -b ${BRANCH} https://gitlab.com/seamonkey-project/seamonkey-${MAJOR_VERSION}-mozilla.git mozilla || exit 1
pushd mozilla/extensions
echo "Cloning Chatzilla..."
hg clone https://hg.mozilla.org/chatzilla irc || exit 1
echo "Cloning DOM Inspector..."
hg clone https://hg.mozilla.org/dom-inspector inspector || exit 1
popd
popd
echo "Creating source archive..."
tar ${COMPRESSION} -cf seamonkey-${VERSION}-source.tar.xz ${SRC_TAR_EXCLUDE_PATHS} seamonkey || exit 1
echo "Cloning locales..."
git clone -b ${BRANCH} https://gitlab.com/seamonkey-project/seamonkey-${MAJOR_VERSION}-l10n.git l10n || exit 1
echo "Creating l10n archive..."
tar ${COMPRESSION} -cf l10n-${VERSION}.tar.xz ${SRC_TAR_EXCLUDE_PATHS} l10n
# TM: Is this still the right thing to do?
# See https://bugzilla.mozilla.org/show_bug.cgi?id=1239707
echo "Cloning compare-locales..."
hg clone http://hg.mozilla.org/build/compare-locales
echo "Creating compare-locales archive..."
tar ${COMPRESSION} -cf compare-locales.tar.xz ${SRC_TAR_EXCLUDE_PATHS} compare-locales