This repository has been archived by the owner on Aug 5, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (48 loc) · 1.91 KB
/
Makefile
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
default:
@echo ""
@echo "Saft.wordpress - CLI"
@echo ""
@echo "- make update - Install or update Saft and Saft.skeleton."
@echo ""
update:
@echo ""
@echo "> Clear folders"
rm -rf Saft
mkdir Saft
@echo ""
@echo "> Fetch Saft and Saft.skeleton"
cp composer.json Saft/composer.json
cd Saft && composer update --ignore-platform-reqs
@echo ""
@echo "> Remove all .git folders from subfolders"
cd Saft && rm `find ./ -name '.git'` -rf
@echo ""
@echo "> Remove obsolete files from subfolders"
cd Saft && rm `find ./ -type f -name '*.bin'` -rf
cd Saft && rm `find ./ -type f -name '*.css'` -rf
cd Saft && rm `find ./ -type f -name '*.csv'` -rf
cd Saft && rm `find ./ -type f -name '*.dist'` -rf
cd Saft && rm `find ./ -type f -name '*.gif'` -rf
cd Saft && rm `find ./ -type f -name '.gitignore'` -rf
cd Saft && rm `find ./ -type f -name '*.html'` -rf
cd Saft && rm `find ./ -type f -name '*.ini'` -rf
cd Saft && rm `find ./ -type f -name '*.jpg'` -rf
cd Saft && rm `find ./ -type f -name '*.js'` -rf
cd Saft && rm `find ./ -type f -name '*.json'` -rf
cd Saft && rm `find ./ -type f -name '*.md'` -rf
cd Saft && rm `find ./ -type f -name '*.nt'` -rf
cd Saft && rm `find ./ -type f -name '*.out'` -rf
cd Saft && rm `find ./ -type f -name '*Test.php'` -rf
cd Saft && rm `find ./ -type f -name '*.phpt'` -rf
cd Saft && rm `find ./ -type f -name '*.png'` -rf
cd Saft && rm `find ./ -type f -name '*.rar'` -rf
cd Saft && rm `find ./ -type f -name '*.response'` -rf
cd Saft && rm `find ./ -type f -name '*.tiff'` -rf
cd Saft && rm `find ./ -type f -name '*.ttl'` -rf
cd Saft && rm `find ./ -type f -name '*.txt'` -rf
cd Saft && rm `find ./ -type f -name '*.TXT'` -rf
cd Saft && rm `find ./ -type f -name '*.xhtml'` -rf
cd Saft && rm `find ./ -type f -name '*.xml'` -rf
cd Saft && rm `find ./ -type f -name '*.xsl'` -rf
cd Saft && rm `find ./ -type f -name '*.yaml'` -rf
cd Saft && rm `find ./ -type f -name '*.yml'` -rf