mirror of
https://github.com/QB64Official/qb64.git
synced 2024-05-12 12:00:14 +00:00
Merge pull request #36 from brickviking/bv-cleansh-1
Added for Linux targets, removed pauses for CI uses
This commit is contained in:
commit
0b1c3fd7a7
33
internal/clean.sh
Normal file
33
internal/clean.sh
Normal file
|
@ -0,0 +1,33 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo "This batch is an admin tool to return QB64 to its pre-setup state"
|
||||
# removed pause so it can be used with .ci tools
|
||||
|
||||
echo Purging temp folders
|
||||
rm -rf temp,temp2,temp3,temp4,temp5,temp6,temp7,temp8,temp9 2>/dev/null
|
||||
echo Replacing main temp folder
|
||||
mkdir temp
|
||||
|
||||
echo Replacing dummy file in temp folder to maintain directory structure
|
||||
cp source/temp.bin temp/temp.bin
|
||||
|
||||
|
||||
echo Pruning source folder
|
||||
rm source/undo2.bin 2>/dev/null
|
||||
rm source/recompile.bat 2>/dev/null
|
||||
rm source/debug.bat 2>/dev/null
|
||||
rm source/files.txt 2>/dev/null
|
||||
rm source/paths.txt 2>/dev/null
|
||||
rm source/root.txt 2>/dev/null
|
||||
rm source/bookmarks.bin 2>/dev/null
|
||||
rm source/recent.bin 2>/dev/null
|
||||
|
||||
echo Culling precompiled libraries
|
||||
rm /s c/libqb/*.o 2>/dev/null
|
||||
rm /s c/libqb/*.a 2>/dev/null
|
||||
rm /s c/parts/*.o 2>/dev/null
|
||||
rm /s c/parts/*.a 2>/dev/null
|
||||
|
||||
echo Culling temporary copies of qbx.cpp, such as qbx2.cpp
|
||||
rm c/qbx2.cpp,c/qbx3.cpp,c/qbx4.cpp,c/qbx5.cpp,c/qbx6.cpp,c/qbx7.cpp,c/qbx8.cpp,c/qbx9.cpp 2>/dev/null
|
||||
|
Loading…
Reference in a new issue