Skip to content

Commit

Permalink
Use python2.6 for update script, and added L10n compile step to script.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fred Wenzel committed Apr 28, 2011
1 parent 8bf571b commit aba6cc3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions bin/update_site.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,15 @@

ENV_BRANCH = {
# 'environment': [PROJECT_BRANCH, VENDOR_BRANCH],
'dev': ['base', 'master'],
'stage': ['master', 'master'],
'dev': ['base', 'master'],
'stage': ['master', 'master'],
'prod': ['prod', 'master'],
}

GIT_PULL = "git pull -q origin %(branch)s"
GIT_SUBMODULE = "git submodule update --init"
SVN_UP = "svn update"
COMPILE_PO = "./compile.sh"

EXEC = 'exec'
CHDIR = 'chdir'
Expand All @@ -54,6 +55,7 @@ def update_site(env, debug):
commands += [
(CHDIR, os.path.join(here, 'locale')),
(EXEC, SVN_UP),
(EXEC, COMPILE_PO),
(CHDIR, here),
]
elif os.path.exists(os.path.join(here, 'locale', '.git')):
Expand All @@ -68,8 +70,8 @@ def update_site(env, debug):
(EXEC, GIT_PULL % vendor_branch),
(EXEC, GIT_SUBMODULE),
(CHDIR, os.path.join(here)),
(EXEC, 'python vendor/src/schematic/schematic migrations/'),
(EXEC, 'python manage.py compress_assets'),
(EXEC, 'python2.6 vendor/src/schematic/schematic migrations/'),
(EXEC, 'python2.6 manage.py compress_assets'),
]

for cmd, cmd_args in commands:
Expand Down

0 comments on commit aba6cc3

Please sign in to comment.