This repository was archived by the owner on Apr 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
43 lines (35 loc) · 1.49 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
version = 1.0.0
all: release artifact svn
PHONY: all
release:
rm -rf ./build/release/
mkdir -p ./build/release/
rsync -rhLDvzP --exclude=.DS_Store --delete ./trunk/ ./build/release/trunk/
rm -rfv ./build/release/trunk/lib/.codeclimate.yml \
./build/release/trunk/lib/.git \
./build/release/trunk/lib/.gitattributes \
./build/release/trunk/lib/.gitignore \
./build/release/trunk/lib/.styleci.yml \
./build/release/trunk/lib/.travis.yml \
./build/release/trunk/lib/CONTRIBUTING.md \
./build/release/trunk/lib/LICENSE.md \
./build/release/trunk/lib/README.md \
./build/release/trunk/lib/composer.json \
./build/release/trunk/lib/docs \
./build/release/trunk/lib/phpdoc.xml \
./build/release/trunk/lib/phpunit.xml \
./build/release/trunk/lib/tests
rsync -rhLDvzP --exclude=.DS_Store --delete ./assets/ ./build/release/assets/
rm -rfv ./build/release/trunk/languages/.git \
./build/release/trunk/languages/.gitignore
artifact: release
rm -rvf ./build/artifacts/wp-security-txt-v$(version).zip
mkdir -p ./build/artifacts/
rm -rvf ./wp-security-txt/
cp -pRv ./build/release/trunk/ ./wp-security-txt/
zip -r9 wp-security-txt-v$(version).zip wp-security-txt
mv -v ./wp-security-txt-v$(version).zip ./build/artifacts/wp-security-txt-v$(version).zip
rm -rvf ./wp-security-txt/
svn: artifact
rsync -rhLDvzP --delete ./build/release/trunk/ ../wordpress-security-txt-svn/trunk/
rsync -rhLDvzP --delete ./build/release/assets/ ../wordpress-security-txt-svn/assets/