diff options
| author | Oxore <oxore@protonmail.com> | 2022-05-16 08:42:31 +0300 |
|---|---|---|
| committer | Oxore <oxore@protonmail.com> | 2022-05-16 08:42:31 +0300 |
| commit | 03715a204633964e52549c66f72d9a9d63088ba8 (patch) | |
| tree | f5acda1efbb26ccad8058de8ce5a64615c74154d /2-unpack.sh | |
Initial commit
Diffstat (limited to '2-unpack.sh')
| -rw-r--r-- | 2-unpack.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/2-unpack.sh b/2-unpack.sh new file mode 100644 index 0000000..b0feab7 --- /dev/null +++ b/2-unpack.sh @@ -0,0 +1,21 @@ +#!/bin/sh +source ./common +set -e + +function unpack() { + if [ ! -d unpacked/$1 ]; then + echo Unpacking $1.$2 + tar xf download/$1.$2 -C unpacked + fi +} + +mkdir -p unpacked +unpack binutils-$binutils_ver tar.xz +unpack newlib-$newlib_ver tar.gz +unpack gcc-$gcc_ver tar.xz +unpack mpfr-$mpfr_ver tar.xz +unpack gmp-$gmp_ver tar.xz +unpack mpc-$mpc_ver tar.gz +unpack isl-$isl_ver tar.bz2 +unpack cloog-$cloog_ver tar.gz +echo Done Unpacking |
