clean script too

This commit is contained in:
lif 2020-03-27 20:30:40 -07:00
parent 9c5fc70321
commit 4ba3715598
3 changed files with 10 additions and 3 deletions

Binary file not shown.

View File

@ -1,12 +1,15 @@
#!/bin/bash
export XBPS_ARCH=armv6l
export XBPS_ARCH=${1:-armv6l}
void_repository=https://alpha.us.repo.voidlinux.org/
set -eo pipefail
command -v curl tar zstd xz 7z zcat sudo rsync
test -f external/freshplayerplugin/CMakeLists.txt
test -f external/nspluginwrapper/configure
if [ ! -f external/freshplayerplugin/CMakeLists.txt ] || [ ! -f external/nspluginwrapper/configure ] ; then
echo "Missing build files for freshplayerplugin and/or nspluginwrapper."
echo "Do you need to run git submodule update --init --recursive ?"
exit 1
fi
mkdir -p workdir
cd workdir

4
clean.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
grep "$PWD/workdir/dev/null" /etc/mtab && sudo umount workdir/dev/null
rm -rf workdir
[ "$1" == dist ] && rm -rf dist