1
0
Fork 0
mirror of https://github.com/yweber/lodel2.git synced 2026-04-27 02:40:57 +02:00

Add -f option to rm in Makefiles and changes 2 properties names in generated code

This commit is contained in:
Yann 2016-01-07 13:46:12 +01:00
commit e44dbcbad8
3 changed files with 8 additions and 8 deletions

View file

@ -12,10 +12,10 @@ pip: cleanpycache
.PHONY: check doc clean cleanpyc cleandoc cleanpycache
cleandoc:
-rm -Rv ./doc/
-rm -Rfv ./doc/
cleanpyc:
-find ./ |grep -E "\.pyc$$" |xargs rm -v 2>/dev/null
-find ./ |grep -E "\.pyc$$" |xargs rm -fv 2>/dev/null
cleanpycache: cleanpyc
-find ./ -type d |grep '__pycache__' | xargs rmdir -v 2>/dev/null
-find ./ -type d |grep '__pycache__' | xargs rmdir -fv 2>/dev/null
clean: cleanpyc cleandoc cleanpycache

View file

@ -9,12 +9,12 @@ dbinit:
.PHONY: clean cleanpycache cleanpyc refreshdyn distclean
distclean: clean
-@rm dynleapi.py
-@rm -vf dynleapi.py
clean: cleanpycache
cleanpyc:
-@rm -v *.pyc
-@rm -vf *.pyc
cleanpycache: cleanpyc
-@rm -vR __pycache__
-@rm -vfR __pycache__

View file

@ -244,8 +244,8 @@ class LeObject(LeCrud, leapi.leobject._LeObject):
class LeRelation(LeCrud, leapi.lerelation._LeRelation):
_uid_fieldtype = {lerel_uid_fieldtype}
_rel_fieldtypes = {lerel_fieldtypes}
_lesup_name = {lesup_name}
_lesub_name = {lesub_name}
_superior_fieldname = {lesup_name}
_subordinate_fieldname = {lesub_name}
class LeHierarch(LeRelation, leapi.lerelation._LeHierarch):
pass