mirror of
https://review.haiku-os.org/buildtools
synced 2024-11-23 07:18:49 +01:00
92b3138b83
Updated dependencies: * GMP 6.2.1 * ISL 0.24 * MPL 1.2.1 * MPFR 4.1.0 The dependencies were pulled in by running the ./contrib/download_prerequisites script and then manually removing the symbolic links and archives, and renaming the directories (i.e mv isl-0.24 to isl)
14 lines
652 B
Bash
Executable File
14 lines
652 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Script to undescribe a GCC revision
|
|
|
|
o=$(git config --get gcc-config.upstream);
|
|
r=$(echo $1 | sed -n 's,^r\([0-9][0-9]*\)-[0-9][0-9]*\(-g[0-9a-f]*\)*$,\1,p');
|
|
n=$(echo $1 | sed -n 's,^r[0-9][0-9]*-\([0-9][0-9]*\)\(-g[0-9a-f]*\)*$,\1,p');
|
|
|
|
test -z $r && echo Invalid id $1 && exit 1;
|
|
h=$(git rev-parse --verify --quiet ${o:-origin}/releases/gcc-$r);
|
|
test -z $h && h=$(git rev-parse --verify --quiet ${o:-origin}/master);
|
|
p=$(git describe --all --match 'basepoints/gcc-'$r $h | sed -n 's,^tags/,,;s,^basepoints/gcc-[0-9][0-9]*-\([0-9][0-9]*\)-g[0-9a-f]*$,\1,p;s,^basepoints/gcc-[0-9][0-9]*$,0,p');
|
|
git rev-parse --verify $h~$(expr $p - $n);
|