projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #13795 from kewljuice/issue_788
[civicrm-core.git]
/
distmaker
/
dists
/
l10n.sh
diff --git
a/distmaker/dists/l10n.sh
b/distmaker/dists/l10n.sh
index 63c6ce6784833bb62db060a469cf5006a20f04e8..5a08606868bb4fbfc1be62c6f5e9030605af1018 100644
(file)
--- a/
distmaker/dists/l10n.sh
+++ b/
distmaker/dists/l10n.sh
@@
-1,56
+1,31
@@
#!/bin/bash
set -ex
#!/bin/bash
set -ex
-# This script assumes
-# that DAOs are generated
-# and all the necessary conversions had place!
-
P=`dirname $0`
CFFILE=$P/../distmaker.conf
P=`dirname $0`
CFFILE=$P/../distmaker.conf
-
if [ ! -f $CFFILE ] ; then
echo "NO DISTMAKER.CONF FILE!"
exit 1
else
. $CFFILE
fi
if [ ! -f $CFFILE ] ; then
echo "NO DISTMAKER.CONF FILE!"
exit 1
else
. $CFFILE
fi
+. "$P/common.sh"
-RSYNCOPTIONS="-avC $DM_EXCLUDES_RSYNC --include=core"
-RSYNCCOMMAND="$DM_RSYNC $RSYNCOPTIONS"
SRC=$DM_SOURCEDIR
TRG=$DM_TMPDIR/civicrm
SRC=$DM_SOURCEDIR
TRG=$DM_TMPDIR/civicrm
-# make sure and clean up before
-if [ -d $TRG ] ; then
- rm -rf $TRG/*
-fi
-
# copy all the stuff
# copy all the stuff
-for CODE in l10n; do
- echo $CODE
- [ -d $SRC/$CODE ] && $RSYNCCOMMAND $SRC/$CODE $TRG
-done
+dm_reset_dirs "$TRG"
+dm_install_l10n "$SRC/l10n" "$TRG/l10n"
-
-# copy selected sqls
-if [ ! -d $TRG/sql ] ; then
- mkdir $TRG/sql
-fi
-
-for F in $SRC/sql/civicrm*.mysql $SRC/sql/case_sample*.mysql; do
+[ ! -d $TRG/sql ] && mkdir $TRG/sql
+for F in $SRC/sql/civicrm_*.??_??.mysql; do
cp $F $TRG/sql
done
cp $F $TRG/sql
done
-# copy docs
-cp $SRC/agpl-3.0.txt $TRG
-cp $SRC/gpl.txt $TRG
-cp $SRC/README.txt $TRG
-cp $SRC/CONTRIBUTORS.txt $TRG
-cp $SRC/agpl-3.0.exception.txt $TRG
-
# gen tarball
cd $TRG/..
# gen tarball
cd $TRG/..
-tar czf $DM_TARGETDIR/civicrm-$DM_VERSION-l10n.tar.gz --exclude '*.po' --exclude pot civicrm
/l10n civicrm/sql/civicrm_*.??_??.mysql
+tar czf $DM_TARGETDIR/civicrm-$DM_VERSION-l10n.tar.gz --exclude '*.po' --exclude pot civicrm
# clean up
rm -rf $TRG
# clean up
rm -rf $TRG