Merge pull request !2 from jinjin/master
This commit is contained in:
openeuler-ci-bot 2020-01-11 14:13:39 +08:00 committed by Gitee
commit 3b0b45ff71

View File

@ -36,8 +36,8 @@ mimic the command-line flag handling of a C++ app that uses google-gflags for
a Python app. a Python app.
%prep %prep
%setup -qc %setup -q -c
mv %{name}-%{version} python2 mv python-gflags-python-gflags-2.0 python2
sed -i '1s|^#!/usr/bin/env python$|#!%{__python2}|' python2/gflags2man.py sed -i '1s|^#!/usr/bin/env python$|#!%{__python2}|' python2/gflags2man.py
sed -i '/^#!\/usr\/bin\/env python$/,+1 d' python2/gflags*.py sed -i '/^#!\/usr\/bin\/env python$/,+1 d' python2/gflags*.py
cp -a python2 python3 cp -a python2 python3