Project

General

Profile

Bug #44 » 0009-Replace-bin-bash-with-posix-shebang.patch

S3_1 - Marko Lindqvist, 12/25/2023 04:28 PM

View differences:

bootstrap/generate_langstat.sh
#!/bin/bash
#!/usr/bin/env bash
#/***********************************************************************
# Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
# This program is free software; you can redistribute it and/or modify
bootstrap/generate_meson_run.sh
#!/bin/bash
#!/usr/bin/env bash
# Freeciv - Copyright (C) 2022 The Freeciv Team
# Freeciv - Copyright (C) 2022-2023 The Freeciv Team
# 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, or (at your option)
......
DATADIR="$(cd $(dirname "$0")/../data ; pwd)"
SCENDIR="$(cd $(dirname "$0")/../data/scenarios ; pwd)"
echo "#!/bin/bash" > "$1"
echo "#!/usr/bin/env bash" > "$1"
echo "# Generated by $(basename "$0")" >> "$1"
echo >> "$1"
echo "if test \"\$1\" = \"--help\" || test \"\$1\" = \"-h\" ||" >> "$1"
bootstrap/generate_metainfo.sh
#!/bin/bash -e
#!/usr/bin/env bash -e
#/***********************************************************************
# Freeciv - Copyright (C) 2022 The Freeciv project
# Freeciv - Copyright (C) 2022-2023 The Freeciv project
# 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, or (at your option)
data/flags/convert_png
#!/bin/bash
#!/usr/bin/env bash
#/***********************************************************************
# Freeciv - Copyright (C) 2017-2023
# 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, 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.
#
#***********************************************************************/
# Using absolute paths due to bug in Inkscape on macOS
files="$(pwd)/$@"
flatpak/build_flatpak.sh
#!/bin/bash
#!/usr/bin/env bash
# Freeciv - Copyright (C) 2022 - The Freeciv Team
# Freeciv - Copyright (C) 2022-2023 - The Freeciv Team
# 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, or (at your option)
platforms/macos/homebrew-appbundle.sh
#!/bin/bash
#!/usr/bin/env bash
# Freeciv - Copyright (C) 2022 - Freeciv team
# Freeciv - Copyright (C) 2022-2023 - Freeciv team
# 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, or (at your option)
scripts/capabilities
#!/bin/bash
#!/usr/bin/env bash
#/***********************************************************************
# Freeciv - Copyright (C) 2010
# Freeciv - Copyright (C) 2010-2023
# 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, or (at your option)
scripts/check_flags.sh
#!/bin/bash
#!/usr/bin/env bash
#/***********************************************************************
# Freeciv - Copyright (C) 2017-2023
# 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, 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.
#
#***********************************************************************/
is_verbose=false
non_quiet=true
scripts/ci-build.sh
#!/bin/bash
#!/usr/bin/env bash
#/***********************************************************************
# Freeciv - Copyright (C) 2017-2023
# 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, 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.
#
#***********************************************************************/
#
# Freeciv CI Script
#
# https://github.com/freeciv/freeciv/actions
#
echo "Running CI job $1 for Freeciv."
basedir=$(pwd)
logfile="${basedir}/freeciv-CI.log"
scripts/mapimg2anim
#!/bin/bash
#!/usr/bin/env bash
#/***********************************************************************
# Freeciv - Copyright (C) 2010
# Freeciv - Copyright (C) 2010-2023
# 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, or (at your option)
......
#
#***********************************************************************/
# convert map images to animations
# Convert map images to animations
#
# requirements:
# Requirements:
# - convert (from ImageMagick)
# - ffmpeg (for avi and flv)
# default values
# Default values
animation="gif"
civgame="freeciv"
mapstr=""
scripts/potfiles
#!/bin/bash
#!/usr/bin/env bash
#/***********************************************************************
# Freeciv - Copyright (C) 2017-2023
# 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, 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.
#
#***********************************************************************/
domains="core nations ruledit"
scripts/refresh_changelog.sh
#!/bin/bash
#!/usr/bin/env bash
#/***********************************************************************
# Freeciv - Copyright (C) 2022
# Freeciv - Copyright (C) 2022-2023
# 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, or (at your option)
scripts/replace
#!/bin/bash
#!/usr/bin/env bash
#/***********************************************************************
# Freeciv - Copyright (C) 2017-2023
# 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, 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.
#
#***********************************************************************/
if test "x$1" = "x-h" || test "x$1" = "x--help" || test "x$3" = "x" ; then
echo "Usage: $0 <path> <string to replace> <replace with>"
scripts/revision_describer.bash
#!/bin/bash
#!/usr/bin/env bash
#/***********************************************************************
# Freeciv - Copyright (C) 2017-2023
# 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, 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.
#
#***********************************************************************/
if test x$1 = x ; then
REVISION="HEAD"
scripts/setup_auth_server.sh
#!/bin/bash
#!/usr/bin/env bash
# Freeciv - Copyright (C) 2007 - Marko Lindqvist
# Freeciv - Copyright (C) 2007-2023 - Marko Lindqvist
# 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, or (at your option)
tests/rs_test_res/ruleset_loads.sh.in
#!/bin/bash
#!/usr/bin/env bash
#/***********************************************************************
# Freeciv - Copyright (C) 2017-2023
# 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, 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.
#
#***********************************************************************/
# ruleset_loads.sh ruleset
# Exits with 0 when the specified ruleset is able to load. Exits with 1 if
tests/rs_test_res/upgrade_ruleset_sync.bash
#!/bin/bash
#!/usr/bin/env bash
#/***********************************************************************
# Freeciv - Copyright (C) 2017-2023
# 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, 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.
#
#***********************************************************************/
# the revision from the old branch to pick if no revision is specified
DEFAULT_REVISION="6263b3424b"
tests/rulesets_autohelp.sh.in
#!/bin/bash
#!/usr/bin/env bash
#/***********************************************************************
# Freeciv - Copyright (C) 2017-2023
# 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, 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.
#
#***********************************************************************/
# rulesets_autohelp.sh [ruleset]...
# Exits with 0 when each specified ruleset or, if no rulesets are specified,
tests/rulesets_not_broken.sh.in
#!/bin/bash
#!/usr/bin/env bash
#/***********************************************************************
# Freeciv - Copyright (C) 2017-2023
# 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, 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.
#
#***********************************************************************/
# rulesets_not_broken.sh [ruleset]...
# Exits with 0 when each specified ruleset or, if no rulesets are specified,
tests/rulesets_save.sh.in
#!/bin/bash
#!/usr/bin/env bash
#/***********************************************************************
# Freeciv - Copyright (C) 2017-2023
# 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, 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.
#
#***********************************************************************/
# rulesets_save.sh [ruleset]...
# Exits with 0 when each specified ruleset or, if no rulesets are specified,
tests/rulesets_upgrade.sh.in
#!/bin/bash
#!/usr/bin/env bash
#/***********************************************************************
# Freeciv - Copyright (C) 2017-2023
# 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, 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.
#
#***********************************************************************/
# rulesets_upgrade.sh
# Exits with 0 when each ruleset specified in upgrade_ruleset_list.txt can
translations/generate_skips.sh
#!/bin/bash
#!/usr/bin/env bash
#/***********************************************************************
# Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
# This program is free software; you can redistribute it and/or modify
translations/stats.sh
#!/bin/bash
#!/usr/bin/env bash
#/**********************************************************************
# Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
# This program is free software; you can redistribute it and/or modify
windows/installer_cross/build_all_installers.sh
#!/bin/bash
#!/usr/bin/env bash
#/***********************************************************************
# Freeciv - Copyright (C) 2017
# Freeciv - Copyright (C) 2017-2023
# 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, or (at your option)
windows/installer_cross/helpers/uninstaller-helper-gtk3.sh
#!/bin/bash
#!/usr/bin/env bash
#/***********************************************************************
# Freeciv - Copyright (C) 2017-2023
# 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, 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.
#
#***********************************************************************/
delfile() {
echo " Delete \"\$INSTDIR/$1\"" | sed 's,/,\\,g'
windows/installer_cross/installer_build.sh
#!/bin/bash
#!/usr/bin/env bash
#/***********************************************************************
# Freeciv - Copyright (C) 2017-2023
# This program is free software; you can redistribute it and/or modify
(2-2/4)