Standardize shebangs (was Usr bin env) (#6229)

* Use portable /usr/bin/env/{perl,python} instead of /usr/bin/{perl,python}

* fix perl;add bash

* Fix indentation using modified scripts

* Revert "fix perl;add bash"

This reverts commit be8b9113c25f7c2fb9c8c9bad556fbca2f0c0ba2.

* python3 everywhere

* more bash

* rebase
change perl

* Linux perl; missing from last PR

* fix doxygen_space

* Use portable /usr/bin/env/{perl,python} instead of /usr/bin/{perl,python}

* fix perl;add bash

* Fix indentation using modified scripts

* Revert "fix perl;add bash"

This reverts commit be8b9113c25f7c2fb9c8c9bad556fbca2f0c0ba2.

* python3 everywhere

* more bash

* rebase
change perl

* fix doxygen_space
This commit is contained in:
lbartoletti 2018-02-05 13:38:02 +01:00 committed by Denis Rouzaud
parent 3883547da4
commit 124e26815d
67 changed files with 85 additions and 85 deletions

View File

@ -2126,9 +2126,9 @@ EXTERNAL_PAGES = YES
# The PERL_PATH should be the absolute path and name of the perl script
# interpreter (i.e. the result of 'which perl').
# The default file (with absolute path) is: /usr/bin/perl.
# The default file (with absolute path) is: /usr/bin/env perl.
PERL_PATH = /usr/bin/perl
PERL_PATH = /usr/bin/env perl
#---------------------------------------------------------------------------
# Configuration options related to the dot tool

View File

@ -251,7 +251,7 @@ TAGFILES =
GENERATE_TAGFILE =
ALLEXTERNALS = NO
EXTERNAL_GROUPS = YES
PERL_PATH = /usr/bin/perl
PERL_PATH = /usr/bin/env perl
#---------------------------------------------------------------------------
# Configuration options related to the dot tool
#---------------------------------------------------------------------------

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
###########################################################################
# package.sh
# ---------------------

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl
# creates a NSIS installer from OSGeo4W packages
# note: works also on Unix

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
###########################################################################
# quickpackage.sh
# ---------------------

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
###########################################################################
# buildrpms.sh
# ---------------------

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python3
import sys, os
from lib2to3.main import main

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
###########################################################################
# addcopyright.sh
# ---------------------
@ -333,20 +333,20 @@ EOF
*.bat|*.cmd)
cat - $src >$dst <<EOF
REM ***************************************************************************
REM $basename
REM ---------------------
REM begin : $authordate
REM copyright : (C) $authoryear by $authorname
REM email : $authoremail
REM ***************************************************************************
REM * *
REM * This program is free software; you can redistribute it and/or modify *
REM * it under the terms of the GNU General Public License as published by *
REM * the Free Software Foundation; either version 2 of the License, or *
REM * (at your option) any later version. *
REM * *
REM ***************************************************************************
REM ***************************************************************************
REM $basename
REM ---------------------
REM begin : $authordate
REM copyright : (C) $authoryear by $authorname
REM email : $authoremail
REM ***************************************************************************
REM * *
REM * This program is free software; you can redistribute it and/or modify *
REM * it under the terms of the GNU General Public License as published by *
REM * the Free Software Foundation; either version 2 of the License, or *
REM * (at your option) any later version. *
REM * *
REM ***************************************************************************
EOF
;;

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl
use strict;
use warnings;

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
###########################################################################
# astyle-all.sh
# ---------------------

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
###########################################################################
# astyle-rollback.sh
# ---------------------

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
###########################################################################
# astyle.sh
# ---------------------
@ -75,9 +75,9 @@ set -e
astyleit() {
$ASTYLE --options="$ASTYLEOPTS" "$1"
modified=$1.unify_includes_modified
modified=$1.unify_includes_modified
cp "$1" "$modified"
scripts/unify_includes.pl "$modified"
perl -i.sortinc -n scripts/unify_includes.pl "$modified"
scripts/doxygen_space.pl "$modified"
diff "$1" "$modified" >/dev/null || mv "$modified" "$1"
rm -f "$modified"

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
###########################################################################
# build_debian_package.sh
# ---------------------

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
###########################################################################
# chkcopyrights.sh
# ---------------------

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
###########################################################################
# chkdoclink.sh
# ---------------------

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
###########################################################################
# chkspelling.sh
# ---------------------

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
###########################################################################
# chstroke.sh
# ---------------------

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python3
"""
/***************************************************************************
context_help_id.py
@ -40,7 +40,7 @@ if len(sys.argv) > 1:
hash.update(sys.argv[1])
# generate the context id by converting the first 12 characters of the hash
# to decimal
context_id = int(hash.hexdigest()[:12],16)
context_id = int(hash.hexdigest()[:12], 16)
# print the result
print context_id
else:

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
###########################################################################
# create-transifex-resources.sh
# ---------------------

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# This script automatically creates custom widget plugin for a given widget class name.
# Use customwidget_create.sh QgsColorButton to create QgsColorButtonPlugin files.

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
if [ "$1" = "-h" ]; then
echo "usage: $0 [-h] [database] [sha1] [sha2]"

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl
###########################################################################
# doxygen_space.pl
# ---------------------

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl
###########################################################################
# fixdiff.pl
# ---------------------

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl
use strict;
use warnings;

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
if [ -d build ]
then

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl
use strict;
use warnings;

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
###########################################################################
# make-tarball.sh
# ---------------------

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
###########################################################################
# make_gource_video.sh
# ---------------------

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl
###########################################################################
# processing2cpp.pl
# ---------------------

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
###########################################################################
# pull_ts.sh
# ---------------------

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
###########################################################################
# push_ts.sh
# ---------------------

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl
###########################################################################
# qgm2cpp.pl
# ---------------------

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl
###########################################################################
# qgsloggermig.pl
# ---------------------

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# Generates random shapefile which may be used for benchmarks

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl -i.bak -p
#!/usr/bin/env perl -i.bak -p
s%www.qgis.org%qgis.org%g;

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl
# creates a new release
# Copyright (C) 2014 Jürgen E. Fischer <jef@norbit.de>

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
###########################################################################
# remove_non_svn_files.sh
# ---------------------

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
###########################################################################
# remove_git_confict_files.sh
# ---------------------

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl
use strict;
use warnings;

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl
###########################################################################
# scandeps.pl
# ---------------------

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl
use strict;
use warnings;
use File::Basename;

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
###########################################################################
# sort_include.sh
# ---------------------

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python3
"""
/***************************************************************************
symbol_xml2db.py

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl
###########################################################################
# ts2cpp.pl
# ---------------------

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl
###########################################################################
# tsstat.pl
# ---------------------

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl -i.sortinc -n
#!/usr/bin/env perl
###########################################################################
# unify_includes.pl
# ---------------------

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
###########################################################################
# update-indent.sh
# ---------------------

View File

@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl
# updates the news file from changelog.qgis.org
# Copyright (C) 2016 Jürgen E. Fischer <jef@norbit.de>

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
###########################################################################
# update_ts.sh
# ---------------------

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
###########################################################################
# update_ts_files.sh
# ---------------------

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
cd $(git rev-parse --show-toplevel)
export PATH=$PATH:$PWD/scripts

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Use a simple shell loop, to process each of the images.
mkdir thumbnails
# for $a in *.png

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# -----------------------------------------------------------
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
############################################################################
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
############################################################################
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python3
"""
***************************************************************************
plugin_builder.py

View File

@ -1,4 +1,4 @@
#! /bin/bash
#!/usr/bin/env bash
###########################################################################
# spawn_fcgi_mac.sh
# ---------------------

View File

@ -1,4 +1,4 @@
#! /bin/bash
#!/usr/bin/env bash
###########################################################################
# lighttpd_mac.sh
# ---------------------