put the shebangs back to /usr/bin/env and hardcode them to python3 in the rpm specfile (debian tbc)

This commit is contained in:
Simon John 2020-01-22 13:00:22 +00:00
parent 42462b2379
commit e9f2f98698
4 changed files with 7 additions and 3 deletions

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python
import serial import serial
import serial.tools.list_ports import serial.tools.list_ports

View file

@ -1,4 +1,5 @@
#!/usr/bin/python3 #!/usr/bin/env python
""" """
Arduino-mk Makefile and project initialiser Arduino-mk Makefile and project initialiser

View file

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python
# This script sends a program on a robotis board (OpenCM9.04 or CM900) # This script sends a program on a robotis board (OpenCM9.04 or CM900)
# using the robotis bootloader (used in OpenCM IDE) # using the robotis bootloader (used in OpenCM IDE)

View file

@ -28,6 +28,7 @@ mkdir -p %{buildroot}/%{_datadir}/arduino
mkdir -p %{buildroot}/%{_bindir} mkdir -p %{buildroot}/%{_bindir}
mkdir -p %{buildroot}/%{_mandir}/man1 mkdir -p %{buildroot}/%{_mandir}/man1
mkdir -p %{buildroot}/%{_docdir}/%{name}/examples mkdir -p %{buildroot}/%{_docdir}/%{name}/examples
sed -i 's/^#!\/usr\/bin\/env python/#!\/usr\/bin\/python3/' bin/*
install -m 755 -d %{buildroot}/%{_docdir}/%{name} install -m 755 -d %{buildroot}/%{_docdir}/%{name}
install -m 755 -d %{buildroot}/%{_docdir}/%{name}/examples install -m 755 -d %{buildroot}/%{_docdir}/%{name}/examples
for dir in `find examples -type d` ; do install -m 755 -d %{buildroot}/%{_docdir}/%{name}/$dir ; done for dir in `find examples -type d` ; do install -m 755 -d %{buildroot}/%{_docdir}/%{name}/$dir ; done
@ -59,6 +60,8 @@ rm -rf %{buildroot}
%{_docdir}/%{name}/examples %{_docdir}/%{name}/examples
%changelog %changelog
* Wed Jan 22 2020 Simon John <git@the-jedi.co.uk>
- Added sed for shebang
* Thu Oct 24 2019 Simon John <git@the-jedi.co.uk> * Thu Oct 24 2019 Simon John <git@the-jedi.co.uk>
- Removed BuildRequires - Removed BuildRequires
* Thu Oct 05 2017 Simon John <git@the-jedi.co.uk> * Thu Oct 05 2017 Simon John <git@the-jedi.co.uk>