Make scripts all be #!/bin/bash
sh is rather inconvenient. I am about to introduce a bashism in
vars.sh.frag and various others.
Ian Jackson
2 years ago
0 | |
#!/bin/sh
|
|
0 |
#!/bin/bash
|
1 | 1 |
# Given a full version string, output just the part that is significant for
|
2 | 2 |
# semver. i.e.. 0.x.* becomes 0.x and x.* becomes x for x != 0.
|
3 | 3 |
sed -r \
|
0 | |
#!/bin/sh
|
|
0 |
#!/bin/bash
|
1 | 1 |
# Grant DM upload permissions on all crates maintained by a DM.
|
2 | 2 |
|
3 | 3 |
if [ "$#" -ne 1 ]; then
|
0 | |
#!/bin/sh
|
|
0 |
#!/bin/bash
|
1 | 1 |
# Symlink {build => src}/$pkg/debian/patches for easier editing.
|
2 | 2 |
#
|
3 | 3 |
# If you give a second argument $2, will create this patch, add Cargo.toml to
|
0 | |
#!/bin/sh
|
|
0 |
#!/bin/bash
|
1 | 1 |
# List all packages that produce rust binaries, from this repo.
|
2 | 2 |
grep -l "\[packages.bin\]" src/*/debian/debcargo.toml \
|
3 | 3 |
| cut -d/ -f2 \
|
0 | |
#!/bin/sh
|
|
0 |
#!/bin/bash
|
1 | 1 |
|
2 | 2 |
abort() { local x=$1; shift; for i in "$@"; do echo >&2 "$0: abort: $i"; done; exit "$x"; }
|
3 | 3 |
|
0 | |
#!/bin/sh
|
|
0 |
#!/bin/bash
|
1 | 1 |
for i in src/*/debian/RFS; do
|
2 | 2 |
echo "$(git log -1 --pretty="format:%ct" "$i")" "$i"
|
3 | 3 |
done | sort | while read t i; do
|
0 | |
#!/bin/sh
|
|
0 |
#!/bin/bash
|
1 | 1 |
# Repackage a crate at the exact version that it was packaged at.
|
2 | 2 |
#
|
3 | 3 |
# Usage: ./repackage.sh <CRATE> [<SEMVER>]
|
0 | |
#!/bin/sh
|
|
0 |
#!/bin/bash
|
1 | 1 |
# Package or update a new or existing crate.
|
2 | 2 |
#
|
3 | 3 |
# Usage: [REALVER=<EXACTVER>] ./release.sh <CRATE> [<SEMVER>]
|