Skip to content

Commit

Permalink
Fixed generating tar
Browse files Browse the repository at this point in the history
  • Loading branch information
colemancda committed May 21, 2022
1 parent 4216e3d commit bf28fe7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build-tar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,17 @@ set -e
SWIFT_INSTALL_PREFIX=$SRC_ROOT/build/swift-armv7-install/usr
LIBDISPATCH_INSTALL_PREFIX=$SRC_ROOT/build/libdispatch-armv7-install/usr
FOUNDATION_INSTALL_PREFIX=$SRC_ROOT/build/foundation-armv7-install/usr
INSTALL_PREFIX=$SRC_ROOT/build/swift-install
INSTALL_PREFIX=$SRC_ROOT/build/swift-install/usr
INSTALL_TAR=$SRC_ROOT/build/swift-armv7.tar.gz

# Combine build output
rm -rf $INSTALL_TAR
rm -rf $INSTALL_PREFIX
mkdir -p $INSTALL_PREFIX
cp -rf $SWIFT_INSTALL_PREFIX/* $INSTALL_PREFIX/
cp -rf $LIBDISPATCH_INSTALL_PREFIX/* $INSTALL_PREFIX/
cp -rf $FOUNDATION_INSTALL_PREFIX/* $INSTALL_PREFIX/

# compress
tar -czvf $INSTALL_TAR $INSTALL_PREFIX
cd $SRC_ROOT/build/swift-install
tar -czvf $INSTALL_TAR .

0 comments on commit bf28fe7

Please sign in to comment.