mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-12 13:59:46 -04:00
Clean up Linux build script
This commit is contained in:
parent
6bcc3f5e78
commit
1ca04fa51f
@ -5,7 +5,7 @@ set -ex
|
|||||||
export CTEST_PARALLEL_LEVEL=$(nproc)
|
export CTEST_PARALLEL_LEVEL=$(nproc)
|
||||||
export CCACHE_DIR=/ccache
|
export CCACHE_DIR=/ccache
|
||||||
|
|
||||||
cd $HOME
|
cd "$HOME"
|
||||||
|
|
||||||
rm -f dwarfs
|
rm -f dwarfs
|
||||||
ln -s /workspace dwarfs
|
ln -s /workspace dwarfs
|
||||||
@ -100,7 +100,7 @@ fi
|
|||||||
$BUILD_TOOL realclean
|
$BUILD_TOOL realclean
|
||||||
|
|
||||||
if [[ "-$BUILD_TYPE-" == *-static-* ]]; then
|
if [[ "-$BUILD_TYPE-" == *-static-* ]]; then
|
||||||
cd $HOME
|
cd "$HOME"
|
||||||
|
|
||||||
VERSION=$(git -C /workspace describe --tags --match "v*" --dirty)
|
VERSION=$(git -C /workspace describe --tags --match "v*" --dirty)
|
||||||
VERSION=${VERSION:1}
|
VERSION=${VERSION:1}
|
||||||
@ -108,11 +108,11 @@ if [[ "-$BUILD_TYPE-" == *-static-* ]]; then
|
|||||||
rm -rf dwarfs-*
|
rm -rf dwarfs-*
|
||||||
rm -f dwarfs
|
rm -f dwarfs
|
||||||
|
|
||||||
mv build/dwarfs-${VERSION}.tar.xz .
|
mv "build/dwarfs-${VERSION}.tar.xz" .
|
||||||
rm -rf build
|
rm -rf build
|
||||||
|
|
||||||
tar xvf dwarfs-${VERSION}.tar.xz
|
tar xvf "dwarfs-${VERSION}.tar.xz"
|
||||||
ln -s dwarfs-${VERSION} dwarfs
|
ln -s "dwarfs-${VERSION}" dwarfs
|
||||||
|
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
|
Loading…
x
Reference in New Issue
Block a user