Skip to content
Permalink
Browse files
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 be8b911.

* 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 be8b911.

* python3 everywhere

* more bash

* rebase
change perl

* fix doxygen_space
  • Loading branch information
lbartoletti authored and 3nids committed Feb 5, 2018
1 parent 3883547 commit 124e268
Show file tree
Hide file tree
Showing 67 changed files with 85 additions and 85 deletions.
@@ -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
@@ -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
#---------------------------------------------------------------------------
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
###########################################################################
# package.sh
# ---------------------
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl
# creates a NSIS installer from OSGeo4W packages
# note: works also on Unix

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
###########################################################################
# quickpackage.sh
# ---------------------
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
###########################################################################
# buildrpms.sh
# ---------------------
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python3
import sys, os

from lib2to3.main import main
@@ -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
;;

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

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
###########################################################################
# astyle-all.sh
# ---------------------
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
###########################################################################
# astyle-rollback.sh
# ---------------------
@@ -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"
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
###########################################################################
# build_debian_package.sh
# ---------------------
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
###########################################################################
# chkcopyrights.sh
# ---------------------
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
###########################################################################
# chkdoclink.sh
# ---------------------
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
###########################################################################
# chkspelling.sh
# ---------------------
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
###########################################################################
# chstroke.sh
# ---------------------
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python3
"""
/***************************************************************************
context_help_id.py
@@ -40,7 +40,7 @@
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:
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
###########################################################################
# create-transifex-resources.sh
# ---------------------
@@ -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.
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

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

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

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

use strict;
use warnings;
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
###########################################################################
# make-tarball.sh
# ---------------------
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
###########################################################################
# make_gource_video.sh
# ---------------------
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl
###########################################################################
# processing2cpp.pl
# ---------------------
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
###########################################################################
# pull_ts.sh
# ---------------------
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
###########################################################################
# push_ts.sh
# ---------------------
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl
###########################################################################
# qgm2cpp.pl
# ---------------------
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl
###########################################################################
# qgsloggermig.pl
# ---------------------
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Generates random shapefile which may be used for benchmarks

@@ -1,4 +1,4 @@
#!/usr/bin/perl -i.bak -p
#!/usr/bin/env perl -i.bak -p

s%www.qgis.org%qgis.org%g;

@@ -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>
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
###########################################################################
# remove_non_svn_files.sh
# ---------------------
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
###########################################################################
# remove_git_confict_files.sh
# ---------------------
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

#

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

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

set -e

@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl
###########################################################################
# scandeps.pl
# ---------------------
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl
use strict;
use warnings;
use File::Basename;
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
###########################################################################
# sort_include.sh
# ---------------------
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e


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