From: EMC C. s. <cv...@cv...> - 2006-08-29 22:46:46
|
Modified file emc2/src/emc/usr_intf/axis/Submakefile Full file: <http://cvs.linuxcnc.org/cvs/emc2/src/emc/usr_intf/axis/Submakefile?rev=1.8> Difference: <http://cvs.linuxcnc.org/cvs/emc2/src/emc/usr_intf/axis/Submakefile.diff?r1=1.7;r2=1.8> Branch: HEAD Log: revision 1.8 date: 2006/08/29 22:46:40; author: jepler; state: Exp; lines: +2 -0 syntax check python scripts before moving into place --- Submakefile 2006/08/29 12:11:58 1.7 +++ Submakefile 2006/08/29 22:46:40 1.8 @@ -44,6 +44,8 @@ PYTARGETS += $(patsubst %.py,../bin/%,$(PYSCRIPTS)) ../bin/%: emc/usr_intf/axis/scripts/%.py + @$(ECHO) Syntax checking python script $(notdir $@) + @$(PYTHON) -c 'import sys; compile(open(sys.argv[1]).read(), sys.argv[1], "exec")' $< $(ECHO) Copying python script $(notdir $@) @(echo '#!$(PYTHON)'; sed '1 { /^#!/d }' $<) > $@.tmp && chmod +x $@.tmp && mv -f $@.tmp $@ |