@@ -45,9 +45,19 @@ dev.clean:
4545 -docker rmi $(REPO_NAME ) -dev
4646
4747dev.build :
48- docker build -t $(REPO_NAME ) -dev $(CURDIR )
49-
50- dev.run : dev.clean dev.build # # Clean, build and run test image
48+ docker build --no-cache -t $(REPO_NAME ) -dev $(CURDIR )
49+
50+ check-log :
51+ @if [ ! -d " $( CURDIR) /var" ]; then \
52+ echo " Creating var directory" ; \
53+ mkdir -p $(CURDIR ) /var; \
54+ fi
55+ @if [ ! -f " $( CURDIR) /var/workbench.log" ]; then \
56+ echo " Creating empty workbench.log" ; \
57+ touch $(CURDIR ) /var/workbench.log; \
58+ fi
59+
60+ dev.run : dev.clean dev.build check-log
5161 docker run -p 8000:8000 -v $(CURDIR ) :/usr/local/src/$(REPO_NAME ) --name $(REPO_NAME ) -dev $(REPO_NAME ) -dev
5262
5363# XBlock directories
@@ -83,11 +93,17 @@ build_dummy_translations: dummy_translations compile_translations ## generate an
8393
8494validate_translations : build_dummy_translations detect_changed_source_translations # # validate translations
8595
86- pull_translations : # # pull translations from transifex
87- cd $(PACKAGE_NAME ) && i18n_tool transifex pull
96+ pull_translations : # # pull translations from Transifex for each XBlock
97+ @for xblock in $(XBLOCKS ) ; do \
98+ echo " Pulling translations for $$ xblock..." ; \
99+ cd $$ xblock && i18n_tool transifex pull; \
100+ done
88101
89- push_translations : extract_translations # # push translations to transifex
90- cd $(PACKAGE_NAME ) && i18n_tool transifex push
102+ push_translations : extract_translations # # push translations to Transifex for each XBlock
103+ @for xblock in $(XBLOCKS ) ; do \
104+ echo " Pushing translations for $$ xblock..." ; \
105+ cd $$ xblock && i18n_tool transifex push; \
106+ done
91107
92108install_transifex_client : # # Install the Transifex client
93109 # Instaling client will skip CHANGELOG and LICENSE files from git changes
0 commit comments