mirror of
https://abf.rosa.ru/djam/abf-console-client-src.git
synced 2025-02-23 18:02:50 +00:00
Merge remote-tracking branch 'mikhailnov/master'
This commit is contained in:
commit
1d1c5a20bf
1 changed files with 4 additions and 0 deletions
4
Makefile
4
Makefile
|
@ -6,6 +6,7 @@
|
|||
|
||||
|
||||
PYTHON=python3
|
||||
PYTHON_BIN := $(shell which $(PYTHON))
|
||||
PYVER := $(shell $(PYTHON) -c 'import sys; print("%.3s" %(sys.version))')
|
||||
PYSYSDIR := $(shell $(PYTHON) -c 'import sys; print(sys.prefix)')
|
||||
PYLIBDIR = $(PYSYSDIR)/lib/python$(PYVER)
|
||||
|
@ -48,6 +49,9 @@ install:
|
|||
sed -i -e "s,mock,$(MOCK),g" $(DESTDIR)$(BINDIR)/abf
|
||||
sed -i -e "s,m0ck_urpm,mock_urpm,g" $(DESTDIR)$(BINDIR)/abf
|
||||
|
||||
if [ "$(PYTHON)" != python3 ] && [ -x $(PYTHON_BIN) ]; then \
|
||||
sed -i -e "s,#!/usr/bin/env python3,#!$(PYTHON_BIN),g" $(DESTDIR)$(BINDIR)/abf ; fi
|
||||
|
||||
mkdir -p $(DESTDIR)$(DATADIR)/bash-completion
|
||||
mkdir -p $(DESTDIR)$(ETCDIR)/bash_completion.d
|
||||
mkdir -p $(DESTDIR)$(ETCDIR)/profile.d
|
||||
|
|
Loading…
Add table
Reference in a new issue