-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathclear.sh
executable file
·55 lines (52 loc) · 1.74 KB
/
clear.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash
CURDIR=$( cd "$( dirname "$0" )" && pwd );
echo -e "\033[0;32mClean: $CURDIR \033[0m";
rm -rf \
"${CURDIR}/bin/" \
"${CURDIR}/lib/" \
"${CURDIR}/build/" \
"${CURDIR}/dependencies/papi/" \
"${CURDIR}/CMakeCache.txt" \
"${CURDIR}/CMakeFiles"/
if [ "$#" -gt "0" ]
then
if [ "$1" == "hm" ] || [ "$1" == "all" ]
then
echo -e "\033[0;32mClean: ${CURDIR}/dependencies/HM-16.20+SCM-8.8 \033[0m";
rm -rf "${CURDIR}/dependencies/HM-16.20+SCM-8.8";
fi
if [ "$1" == "shm" ] || [ "$1" == "all" ]
then
echo -e "\033[0;32mClean: ${CURDIR}/dependencies/SHM-12.4 \033[0m";
rm -rf "${CURDIR}/dependencies/SHM-12.4";
fi
if [ "$1" == "jm" ] || [ "$1" == "all" ]
then
echo -e "\033[0;32mClean: ${CURDIR}/dependencies/jm19.0_app \033[0m";
rm -rf "${CURDIR}/dependencies/jm19.0_app";
echo -e "\033[0;32mClean: ${CURDIR}/dependencies/jm19.0_lib \033[0m";
rm -rf "${CURDIR}/dependencies/jm19.0_lib";
fi
if [ "$1" == "hdrtools" ] || [ "$1" == "all" ]
then
echo -e "\033[0;32mClean: ${CURDIR}/dependencies/HDRTools \033[0m";
rm -rf "${CURDIR}/dependencies/HDRTools";
fi
if [ "$1" == "ffmpeg" ] || [ "$1" == "all" ]
then
echo -e "\033[0;32mClean: ${CURDIR}/dependencies/ffmpeg \033[0m";
rm -rf "${CURDIR}/dependencies/ffmpeg";
fi
if [ "$1" == "vtm" ] || [ "$1" == "all" ]
then
echo -e "\033[0;32mClean: ${CURDIR}/dependencies/VTM-11.2 \033[0m";
rm -rf "${CURDIR}/dependencies/VTM-11.2/";
fi
if [ "$1" == "vv" ] || [ "$1" == "all" ]
then
echo -e "\033[0;32mClean: ${CURDIR}/dependencies/vvenc \033[0m";
rm -rf "${CURDIR}/dependencies/vvenc/";
echo -e "\033[0;32mClean: ${CURDIR}/dependencies/vvdec \033[0m";
rm -rf "${CURDIR}/dependencies/vvdec/";
fi
fi