mirror of
https://git.proxmox.com/git/debcargo-conf
synced 2025-04-28 11:42:14 +00:00
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:
parent
d93204a10e
commit
87c0930c70
@ -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 \
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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 \
|
||||||
|
@ -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"; }
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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>]
|
||||||
|
Loading…
Reference in New Issue
Block a user