gcc/update-gcc.sh
Marek Polacek 0b16d07303 14.1.1-1
Resolves: RHEL-32672
2024-05-10 17:29:23 -04:00

8 lines
340 B
Bash
Executable File

#!/bin/sh
[ -d gcc-dir.tmp ] && echo gcc-dir.tmp already exists && exit 1
git clone --depth 1 git://gcc.gnu.org/git/gcc.git gcc-dir.tmp
git --git-dir=gcc-dir.tmp/.git fetch --depth 1 origin $1
d=`date --iso | sed 's/-//g'`
git --git-dir=gcc-dir.tmp/.git archive --prefix=gcc-14.1.1-$d/ $1 | xz -9e > gcc-14.1.1-$d.tar.xz
rm -rf gcc-dir.tmp