2020-01-18 17:35:20 +00:00
|
|
|
#!/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'`
|
2023-04-26 08:58:06 +00:00
|
|
|
git --git-dir=gcc-dir.tmp/.git archive --prefix=gcc-13.1.1-$d/ $1 | xz -9e > gcc-13.1.1-$d.tar.xz
|
2020-01-18 17:35:20 +00:00
|
|
|
rm -rf gcc-dir.tmp
|