Scripts cleanup

This commit is contained in:
Darren Shepherd 2019-01-25 21:56:20 -07:00
parent 1502ad2530
commit 8cd38003c2
4 changed files with 8 additions and 2 deletions

5
scripts/clean Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
cd $(dirname $0)/..
rm -rf dist bin build k3s hyperkube kubectl

View File

@ -3,7 +3,7 @@ set -e
cd $(dirname $0)
if [ ! -e ../bin/k3s-server ]; then
if [ ! -e ../bin/containerd ]; then
./build
fi

View File

@ -21,6 +21,7 @@ done
rm -rf build/data
mkdir -p build/data
mkdir -p dist
tar cvzf ./build/data.tar.gz --exclude ./bin/hyperkube ./bin
HASH=$(sha256sum ./build/data.tar.gz | awk '{print $1}')

View File

@ -13,4 +13,4 @@ done
rm -rf kubernetes
mkdir -p kubernetes
cd kubernetes
ln -s $1/{cmd,pkg,plugin,third_party} .
ln -s $1/{cmd,pkg,plugin,third_party,openapi.json,openapi.pb} .