Make scripts all be #!/bin/bash

sh is rather inconvenient.  I am about to introduce a bashism in
vars.sh.frag and various others.
This commit is contained in:
Ian Jackson 2021-08-29 21:57:12 +01:00
parent d93204a10e
commit 87c0930c70
8 changed files with 8 additions and 8 deletions

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# Given a full version string, output just the part that is significant for # Given a full version string, output just the part that is significant for
# semver. i.e.. 0.x.* becomes 0.x and x.* becomes x for x != 0. # semver. i.e.. 0.x.* becomes 0.x and x.* becomes x for x != 0.
sed -r \ sed -r \

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# Grant DM upload permissions on all crates maintained by a DM. # Grant DM upload permissions on all crates maintained by a DM.
if [ "$#" -ne 1 ]; then if [ "$#" -ne 1 ]; then

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# Symlink {build => src}/$pkg/debian/patches for easier editing. # Symlink {build => src}/$pkg/debian/patches for easier editing.
# #
# If you give a second argument $2, will create this patch, add Cargo.toml to # If you give a second argument $2, will create this patch, add Cargo.toml to

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# List all packages that produce rust binaries, from this repo. # List all packages that produce rust binaries, from this repo.
grep -l "\[packages.bin\]" src/*/debian/debcargo.toml \ grep -l "\[packages.bin\]" src/*/debian/debcargo.toml \
| cut -d/ -f2 \ | cut -d/ -f2 \

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
abort() { local x=$1; shift; for i in "$@"; do echo >&2 "$0: abort: $i"; done; exit "$x"; } abort() { local x=$1; shift; for i in "$@"; do echo >&2 "$0: abort: $i"; done; exit "$x"; }

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
for i in src/*/debian/RFS; do for i in src/*/debian/RFS; do
echo "$(git log -1 --pretty="format:%ct" "$i")" "$i" echo "$(git log -1 --pretty="format:%ct" "$i")" "$i"
done | sort | while read t i; do done | sort | while read t i; do

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# Repackage a crate at the exact version that it was packaged at. # Repackage a crate at the exact version that it was packaged at.
# #
# Usage: ./repackage.sh <CRATE> [<SEMVER>] # Usage: ./repackage.sh <CRATE> [<SEMVER>]

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# Package or update a new or existing crate. # Package or update a new or existing crate.
# #
# Usage: [REALVER=<EXACTVER>] ./release.sh <CRATE> [<SEMVER>] # Usage: [REALVER=<EXACTVER>] ./release.sh <CRATE> [<SEMVER>]