mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-22 00:06:12 -05:00
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:
parent
3883547da4
commit
124e26815d
@ -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
|
||||
|
2
external/libdxfrw/libdxfrw.dox
vendored
2
external/libdxfrw/libdxfrw.dox
vendored
@ -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 @@ 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:
|
||||
|
@ -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
|
||||
# ---------------------
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/perl
|
||||
#!/usr/bin/env perl
|
||||
###########################################################################
|
||||
# tsstat.pl
|
||||
# ---------------------
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/perl -i.sortinc -n
|
||||
#!/usr/bin/env perl
|
||||
###########################################################################
|
||||
# unify_includes.pl
|
||||
# ---------------------
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
###########################################################################
|
||||
# update-indent.sh
|
||||
# ---------------------
|
||||
|
@ -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>
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
###########################################################################
|
||||
# update_ts.sh
|
||||
# ---------------------
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
###########################################################################
|
||||
# update_ts_files.sh
|
||||
# ---------------------
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
cd $(git rev-parse --show-toplevel)
|
||||
|
||||
export PATH=$PATH:$PWD/scripts
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
|
@ -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
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
# -----------------------------------------------------------
|
||||
#
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
############################################################################
|
||||
#
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
############################################################################
|
||||
#
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/python
|
||||
#!/usr/bin/env python3
|
||||
"""
|
||||
***************************************************************************
|
||||
plugin_builder.py
|
||||
|
@ -1,4 +1,4 @@
|
||||
#! /bin/bash
|
||||
#!/usr/bin/env bash
|
||||
###########################################################################
|
||||
# spawn_fcgi_mac.sh
|
||||
# ---------------------
|
||||
|
@ -1,4 +1,4 @@
|
||||
#! /bin/bash
|
||||
#!/usr/bin/env bash
|
||||
###########################################################################
|
||||
# lighttpd_mac.sh
|
||||
# ---------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user