forked from acidsound/bootstrap-datepicker
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathpublish-locales.sh
executable file
·60 lines (54 loc) · 1.28 KB
/
publish-locales.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/bash -
#===============================================================================
#
# FILE: publish-locales.sh
#
# USAGE: ./publish-locales.sh
#
# DESCRIPTION: Publish Meteor packages for each locale, according to locales.cfg
#
# OPTIONS: ---
# REQUIREMENTS: ---
# BUGS: ---
# NOTES: ---
# AUTHOR: Rajit Singh
# ORGANIZATION: ---
# CREATED: 16/06/2015 10:42
# REVISION: ---
#===============================================================================
set -o nounset # Treat unset variables as an error
cflag=
while getopts c name
do
case $name in
c) cflag=1;;
esac
done
if [ -z "$cflag" ]; then
publish_options=""
else
publish_options=" --create"
fi
original_pwd=$PWD
# cat <<EOL |
# Arabic-Tunisia ar-tn
# Bengali bn
# Breton br
# Canadian English en-CA
# Irish English en-IE
# New Zealand English en-NZ
# South African English en-ZA
# Hindi hi
# Occitan oc
# Tamil ta
# Tajik tg
# Uzbek (cyrillic) uz-cyrl
# Uzbek (latin) uz-latn
# EOL
# while read -r locale; do
cat locales.cfg | while read -r locale; do
locale_description=$(echo "$locale" | cut -f 1)
locale_id=$(echo "$locale" | cut -f 2)
cd "$original_pwd/locales/$locale_id"
meteor publish$publish_options
done