index : bootstrap32 | |
Archlinux32 bootstrap scripts | gitolite user |
summaryrefslogtreecommitdiff |
author | Andreas Baumann <mail@andreasbaumann.cc> | 2018-01-28 18:25:52 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2018-01-28 18:25:52 +0100 |
commit | 37be8f73669ddadf2259656f656af5f5c5bc39b9 (patch) | |
tree | 68fea63a95500245869ebac5537dda5c4401490f /create_gcc-lib_shim.sh | |
parent | 164181c1589942d9d1c8e1bf6cbba76974b7e1c7 (diff) |
-rwxr-xr-x[-rw-r--r--] | create_gcc-lib_shim.sh | 16 |
diff --git a/create_gcc-lib_shim.sh b/create_gcc-lib_shim.sh index 5045a45..9b5edcc 100644..100755 --- a/create_gcc-lib_shim.sh +++ b/create_gcc-lib_shim.sh @@ -6,10 +6,10 @@ if test ! -f $STAGE1_CHROOT/packages/$TARGET_CPU/gcc-libs-shim-7.2.0-1-$TARGET_CPU.pkg.tar.xz; then - cd $STAGE1_BUILD + cd $STAGE1_BUILD || exit 1 rm -rf gcc-libs-shim mkdir gcc-libs-shim - cd gcc-libs-shim + cd gcc-libs-shim || exit 1 mkdir -p pkg/gcc-libs-shim/usr/lib cp -a $XTOOLS_ARCH/$TARGET_ARCH/sysroot/lib/libgcc_s.so pkg/gcc-libs-shim/usr/lib/. cp -a $XTOOLS_ARCH/$TARGET_ARCH/sysroot/lib/libgcc_s.so.1 pkg/gcc-libs-shim/usr/lib/. @@ -21,8 +21,8 @@ if test ! -f $STAGE1_CHROOT/packages/$TARGET_CPU/gcc-libs-shim-7.2.0-1-$TARGET_C ln -s libstdc++.so.6.0.24 pkg/gcc-libs-shim/usr/lib/libstdc++.so.6 ln -s libstdc++.so.6.0.24 pkg/gcc-libs-shim/usr/lib/libstdc++.so - BUILDDATE=`date '+%s'` - size=`du -sk --apparent-size pkg/` + BUILDDATE=$(date '+%s') + size=$(du -sk --apparent-size pkg/) size="$(( ${size%%[^0-9]*} * 1024 ))" cat > pkg/gcc-libs-shim/.PKGINFO <<EOF pkgname = gcc-libs-shim @@ -36,11 +36,11 @@ provides = gcc-libs conflict = gcc-libs EOF - cd pkg/gcc-libs-shim - tar cJvf - .PKGINFO * | xz > ../../gcc-libs-shim-7.2.0-1-$TARGET_CPU.pkg.tar.xz - cd ../.. + cd pkg/gcc-libs-shim || exit 1 + tar cJvf - .PKGINFO ./* | xz > ../../gcc-libs-shim-7.2.0-1-$TARGET_CPU.pkg.tar.xz + cd ../.. || exit 1 - cp -v *.pkg.tar.xz $STAGE1_CHROOT/packages/$TARGET_CPU/. + cp -v ./*.pkg.tar.xz $STAGE1_CHROOT/packages/$TARGET_CPU/. rm -rf $STAGE1_CHROOT/var/cache/pacman/pkg/* rm -rf $STAGE1_CHROOT/packages/$TARGET_CPU/temp.db* rm -rf $STAGE1_CHROOT/packages/$TARGET_CPU/temp.files* |