Merge pull request #11481 from jitendrapurohit/CRM-21622
[civicrm-core.git] / distmaker / dists / l10n.sh
CommitLineData
6a488035 1#!/bin/bash
7c71cbb4 2set -ex
6a488035 3
6a488035
TO
4P=`dirname $0`
5CFFILE=$P/../distmaker.conf
6a488035
TO
6if [ ! -f $CFFILE ] ; then
7 echo "NO DISTMAKER.CONF FILE!"
8 exit 1
9else
10 . $CFFILE
11fi
8d32d903 12. "$P/common.sh"
13
6a488035
TO
14SRC=$DM_SOURCEDIR
15TRG=$DM_TMPDIR/civicrm
16
6a488035 17# copy all the stuff
fa379693 18dm_reset_dirs "$TRG"
8d32d903 19dm_install_l10n "$SRC/l10n" "$TRG/l10n"
6a488035 20
df2bc1e1 21[ ! -d $TRG/sql ] && mkdir $TRG/sql
3ef9b138 22for F in $SRC/sql/civicrm_*.??_??.mysql; do
6a488035
TO
23 cp $F $TRG/sql
24done
25
6a488035
TO
26# gen tarball
27cd $TRG/..
3ef9b138 28tar czf $DM_TARGETDIR/civicrm-$DM_VERSION-l10n.tar.gz --exclude '*.po' --exclude pot civicrm
6a488035
TO
29
30# clean up
31rm -rf $TRG