diff --git a/bin/ard-reset-arduino b/bin/ard-reset-arduino index b015b0f..f03bf66 100755 --- a/bin/ard-reset-arduino +++ b/bin/ard-reset-arduino @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python import serial import serial.tools.list_ports diff --git a/bin/ardmk-init b/bin/ardmk-init index e79170c..604ba02 100755 --- a/bin/ardmk-init +++ b/bin/ardmk-init @@ -1,4 +1,5 @@ -#!/usr/bin/python3 +#!/usr/bin/env python + """ Arduino-mk Makefile and project initialiser diff --git a/bin/robotis-loader b/bin/robotis-loader index 3f3c21b..4ac07d4 100755 --- a/bin/robotis-loader +++ b/bin/robotis-loader @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python # This script sends a program on a robotis board (OpenCM9.04 or CM900) # using the robotis bootloader (used in OpenCM IDE) diff --git a/packaging/fedora/arduino-mk.spec b/packaging/fedora/arduino-mk.spec index 559e229..7d0a4df 100644 --- a/packaging/fedora/arduino-mk.spec +++ b/packaging/fedora/arduino-mk.spec @@ -28,6 +28,7 @@ mkdir -p %{buildroot}/%{_datadir}/arduino mkdir -p %{buildroot}/%{_bindir} mkdir -p %{buildroot}/%{_mandir}/man1 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}/examples 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 %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> - Removed BuildRequires * Thu Oct 05 2017 Simon John <git@the-jedi.co.uk>