forked from gicking/stm8gal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_clean.sh
executable file
·37 lines (28 loc) · 831 Bytes
/
_clean.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
# open terminal on double-click, skip else. See https://www.linuxquestions.org/questions/programming-9/executing-shell-script-in-terminal-directly-with-a-double-click-370091/
tty -s; if [ $? -ne 0 ]; then /etc/alternatives/x-terminal-emulator -e "$0"; exit; fi
# change to current working directory
cd `dirname $0`
# just for output
echo off
clear
# make application
make -f Makefile clean
# delete DevC++ objects. Keep Objects folder
rm -fr ./Objects
mkdir ./Objects
# delete doxygen output
rm -fr ./doxygen/html
rm -fr ./doxygen/latex
rm -fr ./doxygen/man
rm -fr ./doxygen/rtf
rm -fr ./doxygen/xml
# delete other output
rm -fr ./dump.txt
rm -fr ./.DS_Store
rm -fr ./doxygen/.DS_Store
rm -fr ./doxygen/images/.DS_Store
rm -fr ./STM8_Routines/.DS_Store
echo " "
read -p "press key to close window..."
echo on