Codebase list rust-stfu8 / 87c0930
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
8 changed file(s) with 8 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
0 #!/bin/sh
0 #!/bin/bash
11 # Given a full version string, output just the part that is significant for
22 # semver. i.e.. 0.x.* becomes 0.x and x.* becomes x for x != 0.
33 sed -r \
0 #!/bin/sh
0 #!/bin/bash
11 # Grant DM upload permissions on all crates maintained by a DM.
22
33 if [ "$#" -ne 1 ]; then
0 #!/bin/sh
0 #!/bin/bash
11 # Symlink {build => src}/$pkg/debian/patches for easier editing.
22 #
33 # If you give a second argument $2, will create this patch, add Cargo.toml to
0 #!/bin/sh
0 #!/bin/bash
11 # List all packages that produce rust binaries, from this repo.
22 grep -l "\[packages.bin\]" src/*/debian/debcargo.toml \
33 | cut -d/ -f2 \
0 #!/bin/sh
0 #!/bin/bash
11
22 abort() { local x=$1; shift; for i in "$@"; do echo >&2 "$0: abort: $i"; done; exit "$x"; }
33
0 #!/bin/sh
0 #!/bin/bash
11 for i in src/*/debian/RFS; do
22 echo "$(git log -1 --pretty="format:%ct" "$i")" "$i"
33 done | sort | while read t i; do
0 #!/bin/sh
0 #!/bin/bash
11 # Repackage a crate at the exact version that it was packaged at.
22 #
33 # Usage: ./repackage.sh <CRATE> [<SEMVER>]
0 #!/bin/sh
0 #!/bin/bash
11 # Package or update a new or existing crate.
22 #
33 # Usage: [REALVER=<EXACTVER>] ./release.sh <CRATE> [<SEMVER>]