added clean_packages.sh
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -12,8 +12,9 @@ support/Dockerfile
|
|||||||
version.cpp
|
version.cpp
|
||||||
version.rc
|
version.rc
|
||||||
.DS_Store
|
.DS_Store
|
||||||
*.tar.gz
|
*.gz
|
||||||
*.bz2
|
*.bz2
|
||||||
*.xz
|
*.xz
|
||||||
*.zip
|
*.zip
|
||||||
*.msi
|
*.msi
|
||||||
|
*.exe
|
||||||
|
|||||||
21
clean_packages.sh
Executable file
21
clean_packages.sh
Executable file
@@ -0,0 +1,21 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
CURRENT_DIR=$(realpath "$0")
|
||||||
|
CURRENT_DIR=$(dirname "${CURRENT_DIR}")
|
||||||
|
|
||||||
|
pushd "${CURRENT_DIR}"
|
||||||
|
|
||||||
|
mapfile -t FILE_LIST < <(find support/3rd_party/ -type f \( -name '*.gz' -o -name '*.bz2' -o -name '*.xz' -o -name '*.msi' -o -name '*.zip' \))
|
||||||
|
|
||||||
|
for NAME in "${FILE_LIST[@]}"; do
|
||||||
|
echo "Removing ${NAME}"
|
||||||
|
rm -f "${NAME}"
|
||||||
|
done
|
||||||
|
|
||||||
|
mapfile -t FILE_LIST < <(find support/3rd_party/mingw64/ -type f \( -name '*.exe' \))
|
||||||
|
for NAME in "${FILE_LIST[@]}"; do
|
||||||
|
echo "Removing ${NAME}"
|
||||||
|
rm -f "${NAME}"
|
||||||
|
done
|
||||||
|
|
||||||
|
popd
|
||||||
BIN
support/3rd_party/mingw64/innosetup-6.5.4.exe
LFS
vendored
BIN
support/3rd_party/mingw64/innosetup-6.5.4.exe
LFS
vendored
Binary file not shown.
Reference in New Issue
Block a user