From 70c0d04aedacaa59bbd854911afaeeacab61fbb2 Mon Sep 17 00:00:00 2001 From: Anthony Scemama Date: Thu, 16 Oct 2014 20:45:17 +0200 Subject: [PATCH] Changed usr/bin/python to use/bin/env python --- example/uvwt.irp.f | 7 ++----- src/codelet.py | 27 ++++++++++++++++++++++++++- src/command_line.py | 2 +- src/create_man.py | 2 +- src/cython_setup.py | 27 ++++++++++++++++++++++++++- src/error.py | 2 +- src/init.py | 2 +- src/irp_stack.py | 2 +- src/irpf90.py | 2 +- src/irpf90_indent.py | 27 ++++++++++++++++++++++++++- src/irpf90_t.py | 2 +- src/irpman.py | 2 +- src/locks.py | 2 +- src/makefile.py | 2 +- src/module.py | 2 +- src/modules.py | 2 +- src/parsed_text.py | 2 +- src/preprocessed_text.py | 2 +- src/profile.py | 27 ++++++++++++++++++++++++++- src/regexps.py | 2 +- src/subroutine.py | 2 +- src/subroutines.py | 2 +- src/touches.py | 2 +- src/util.py | 2 +- src/variable.py | 2 +- src/variables.py | 2 +- src/version.py | 2 +- src/vim.py | 27 ++++++++++++++++++++++++++- 28 files changed, 154 insertions(+), 32 deletions(-) diff --git a/example/uvwt.irp.f b/example/uvwt.irp.f index f8be7e8..c5fd5b8 100644 --- a/example/uvwt.irp.f +++ b/example/uvwt.irp.f @@ -12,15 +12,12 @@ END_PROVIDER BEGIN_PROVIDER [ integer, u1 ] integer :: fu -! u1 = fu(d1,d2) - u1 = d1+d2+1 + u1 = fu(d1,d2) END_PROVIDER BEGIN_PROVIDER [ integer, u2 ] integer :: fu -! u2 = fu(d3,d4) - u2 = d3+d4+1 - ASSERT (u2 > d3) + u2 = fu(d3,d4) END_PROVIDER integer function fu(x,y) diff --git a/src/codelet.py b/src/codelet.py index c11d95e..dbdc57e 100644 --- a/src/codelet.py +++ b/src/codelet.py @@ -1,4 +1,29 @@ -#!/usr/bin/python +#!/usr/bin/env python +# IRPF90 is a Fortran90 preprocessor written in Python for programming using +# the Implicit Reference to Parameters (IRP) method. +# Copyright (C) 2009 Anthony SCEMAMA +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# +# Anthony Scemama +# LCPQ - IRSAMC - CNRS +# Universite Paul Sabatier +# 118, route de Narbonne +# 31062 Toulouse Cedex 4 +# scemama@irsamc.ups-tlse.fr + from command_line import command_line import irpf90_t diff --git a/src/command_line.py b/src/command_line.py index 1581b8b..92b6c49 100644 --- a/src/command_line.py +++ b/src/command_line.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # IRPF90 is a Fortran90 preprocessor written in Python for programming using # the Implicit Reference to Parameters (IRP) method. # Copyright (C) 2009 Anthony SCEMAMA diff --git a/src/create_man.py b/src/create_man.py index 287b38d..52f5816 100644 --- a/src/create_man.py +++ b/src/create_man.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # IRPF90 is a Fortran90 preprocessor written in Python for programming using # the Implicit Reference to Parameters (IRP) method. # Copyright (C) 2009 Anthony SCEMAMA diff --git a/src/cython_setup.py b/src/cython_setup.py index f50de79..ae6b6a3 100755 --- a/src/cython_setup.py +++ b/src/cython_setup.py @@ -1,4 +1,29 @@ -#!/usr/bin/python +#!/usr/bin/env python +# IRPF90 is a Fortran90 preprocessor written in Python for programming using +# the Implicit Reference to Parameters (IRP) method. +# Copyright (C) 2009 Anthony SCEMAMA +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# +# Anthony Scemama +# LCPQ - IRSAMC - CNRS +# Universite Paul Sabatier +# 118, route de Narbonne +# 31062 Toulouse Cedex 4 +# scemama@irsamc.ups-tlse.fr + from distutils.core import setup from distutils.extension import Extension from Cython.Distutils import build_ext diff --git a/src/error.py b/src/error.py index 2369ff0..42580b1 100644 --- a/src/error.py +++ b/src/error.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # IRPF90 is a Fortran90 preprocessor written in Python for programming using # the Implicit Reference to Parameters (IRP) method. # Copyright (C) 2009 Anthony SCEMAMA diff --git a/src/init.py b/src/init.py index 94b82c1..a33b7d5 100644 --- a/src/init.py +++ b/src/init.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # IRPF90 is a Fortran90 preprocessor written in Python for programming using # the Implicit Reference to Parameters (IRP) method. # Copyright (C) 2009 Anthony SCEMAMA diff --git a/src/irp_stack.py b/src/irp_stack.py index 0a5a9d0..4c25bef 100644 --- a/src/irp_stack.py +++ b/src/irp_stack.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # IRPF90 is a Fortran90 preprocessor written in Python for programming using # the Implicit Reference to Parameters (IRP) method. # Copyright (C) 2009 Anthony SCEMAMA diff --git a/src/irpf90.py b/src/irpf90.py index 1b9fd65..8df10e3 100644 --- a/src/irpf90.py +++ b/src/irpf90.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # IRPF90 is a Fortran90 preprocessor written in Python for programming using # the Implicit Reference to Parameters (IRP) method. # Copyright (C) 2009 Anthony SCEMAMA diff --git a/src/irpf90_indent.py b/src/irpf90_indent.py index eb042da..0b62aad 100755 --- a/src/irpf90_indent.py +++ b/src/irpf90_indent.py @@ -1,4 +1,29 @@ -#!/usr/bin/python +#!/usr/bin/env python +# IRPF90 is a Fortran90 preprocessor written in Python for programming using +# the Implicit Reference to Parameters (IRP) method. +# Copyright (C) 2009 Anthony SCEMAMA +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# +# Anthony Scemama +# LCPQ - IRSAMC - CNRS +# Universite Paul Sabatier +# 118, route de Narbonne +# 31062 Toulouse Cedex 4 +# scemama@irsamc.ups-tlse.fr + import sys import re diff --git a/src/irpf90_t.py b/src/irpf90_t.py index 73dff2b..68ffca9 100644 --- a/src/irpf90_t.py +++ b/src/irpf90_t.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # IRPF90 is a Fortran90 preprocessor written in Python for programming using # the Implicit Reference to Parameters (IRP) method. # Copyright (C) 2009 Anthony SCEMAMA diff --git a/src/irpman.py b/src/irpman.py index c0253a8..4e15b54 100755 --- a/src/irpman.py +++ b/src/irpman.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # IRPF90 is a Fortran90 preprocessor written in Python for programming using # the Implicit Reference to Parameters (IRP) method. # Copyright (C) 2009 Anthony SCEMAMA diff --git a/src/locks.py b/src/locks.py index fff745b..892d0cd 100644 --- a/src/locks.py +++ b/src/locks.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # IRPF90 is a Fortran90 preprocessor written in Python for programming using # the Implicit Reference to Parameters (IRP) method. # Copyright (C) 2009 Anthony SCEMAMA diff --git a/src/makefile.py b/src/makefile.py index 2a7c016..35d2d1a 100644 --- a/src/makefile.py +++ b/src/makefile.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # IRPF90 is a Fortran90 preprocessor written in Python for programming using # the Implicit Reference to Parameters (IRP) method. # Copyright (C) 2009 Anthony SCEMAMA diff --git a/src/module.py b/src/module.py index 3d648aa..5f761ed 100644 --- a/src/module.py +++ b/src/module.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # IRPF90 is a Fortran90 preprocessor written in Python for programming using # the Implicit Reference to Parameters (IRP) method. # Copyright (C) 2009 Anthony SCEMAMA diff --git a/src/modules.py b/src/modules.py index 2974442..6457820 100644 --- a/src/modules.py +++ b/src/modules.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # IRPF90 is a Fortran90 preprocessor written in Python for programming using # the Implicit Reference to Parameters (IRP) method. # Copyright (C) 2009 Anthony SCEMAMA diff --git a/src/parsed_text.py b/src/parsed_text.py index 6c09612..4b6dc47 100644 --- a/src/parsed_text.py +++ b/src/parsed_text.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # IRPF90 is a Fortran90 preprocessor written in Python for programming using # the Implicit Reference to Parameters (IRP) method. # Copyright (C) 2009 Anthony SCEMAMA diff --git a/src/preprocessed_text.py b/src/preprocessed_text.py index c479f0e..b7a4bf8 100644 --- a/src/preprocessed_text.py +++ b/src/preprocessed_text.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # IRPF90 is a Fortran90 preprocessor written in Python for programming using # the Implicit Reference to Parameters (IRP) method. # Copyright (C) 2009 Anthony SCEMAMA diff --git a/src/profile.py b/src/profile.py index abf0b92..9f66708 100644 --- a/src/profile.py +++ b/src/profile.py @@ -1,4 +1,29 @@ -#!/usr/bin/python +#!/usr/bin/env python +# IRPF90 is a Fortran90 preprocessor written in Python for programming using +# the Implicit Reference to Parameters (IRP) method. +# Copyright (C) 2009 Anthony SCEMAMA +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# +# Anthony Scemama +# LCPQ - IRSAMC - CNRS +# Universite Paul Sabatier +# 118, route de Narbonne +# 31062 Toulouse Cedex 4 +# scemama@irsamc.ups-tlse.fr + rdtsc = """ #ifdef __i386 diff --git a/src/regexps.py b/src/regexps.py index b5ddcda..1aecc8f 100644 --- a/src/regexps.py +++ b/src/regexps.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # IRPF90 is a Fortran90 preprocessor written in Python for programming using # the Implicit Reference to Parameters (IRP) method. # Copyright (C) 2009 Anthony SCEMAMA diff --git a/src/subroutine.py b/src/subroutine.py index 1a9d75b..9b47da3 100644 --- a/src/subroutine.py +++ b/src/subroutine.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # IRPF90 is a Fortran90 preprocessor written in Python for programming using # the Implicit Reference to Parameters (IRP) method. # Copyright (C) 2009 Anthony SCEMAMA diff --git a/src/subroutines.py b/src/subroutines.py index 90edb68..67444b6 100644 --- a/src/subroutines.py +++ b/src/subroutines.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # IRPF90 is a Fortran90 preprocessor written in Python for programming using # the Implicit Reference to Parameters (IRP) method. # Copyright (C) 2009 Anthony SCEMAMA diff --git a/src/touches.py b/src/touches.py index b135e25..0690558 100644 --- a/src/touches.py +++ b/src/touches.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # IRPF90 is a Fortran90 preprocessor written in Python for programming using # the Implicit Reference to Parameters (IRP) method. # Copyright (C) 2009 Anthony SCEMAMA diff --git a/src/util.py b/src/util.py index f5935d2..8511656 100644 --- a/src/util.py +++ b/src/util.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # IRPF90 is a Fortran90 preprocessor written in Python for programming using # the Implicit Reference to Parameters (IRP) method. # Copyright (C) 2009 Anthony SCEMAMA diff --git a/src/variable.py b/src/variable.py index 96cc924..9266876 100644 --- a/src/variable.py +++ b/src/variable.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # IRPF90 is a Fortran90 preprocessor written in Python for programming using # the Implicit Reference to Parameters (IRP) method. # Copyright (C) 2009 Anthony SCEMAMA diff --git a/src/variables.py b/src/variables.py index 6029c84..cf2a409 100644 --- a/src/variables.py +++ b/src/variables.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # IRPF90 is a Fortran90 preprocessor written in Python for programming using # the Implicit Reference to Parameters (IRP) method. # Copyright (C) 2009 Anthony SCEMAMA diff --git a/src/version.py b/src/version.py index 6abaa20..841aad2 100644 --- a/src/version.py +++ b/src/version.py @@ -1 +1 @@ -version = "1.4.1" +version = "1.4.2" diff --git a/src/vim.py b/src/vim.py index e409eb7..3012393 100644 --- a/src/vim.py +++ b/src/vim.py @@ -1,4 +1,29 @@ -#/usr/bin/python +#/usr/bin/env python +# IRPF90 is a Fortran90 preprocessor written in Python for programming using +# the Implicit Reference to Parameters (IRP) method. +# Copyright (C) 2009 Anthony SCEMAMA +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# +# Anthony Scemama +# LCPQ - IRSAMC - CNRS +# Universite Paul Sabatier +# 118, route de Narbonne +# 31062 Toulouse Cedex 4 +# scemama@irsamc.ups-tlse.fr + import os