mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-20 21:37:39 +01:00
make, scripts: Preserve modification time on installation
Implemented -p switch on pkg.sh log-install and used it on standard installation rules. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
378feb60ec
commit
92040c66e7
12 changed files with 34 additions and 28 deletions
|
|
@ -28,10 +28,10 @@ install-reg.done: install-dirs.done $(PY_INSTALLED_REG)
|
|||
python -c "import py_compile; py_compile.compile(\"$<\")"
|
||||
|
||||
$(PY_INSTALL_DIR)/%.py: %.py
|
||||
$(INSTALL) -m $(PYMODMODE) -o $(PYMODOWNER) -g $(PYMODGROUP) $< $@
|
||||
$(INSTALL) -p -m $(PYMODMODE) -o $(PYMODOWNER) -g $(PYMODGROUP) $< $@
|
||||
|
||||
$(PY_INSTALL_DIR)/%.pyc: %.pyc
|
||||
$(INSTALL) -m $(PYMODMODE) -o $(PYMODOWNER) -g $(PYMODGROUP) $< $@
|
||||
$(INSTALL) -p -m $(PYMODMODE) -o $(PYMODOWNER) -g $(PYMODGROUP) $< $@
|
||||
|
||||
__init__.py: $(PY_INIT_TMPL) $(filter-out __init__.py,$(PY_SRC_PY))
|
||||
if [ "$(PY_INIT_TMPL)" ]; then cat "$(PY_INIT_TMPL)" > $@.tmp; else > $@.tmp; fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue