Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
TOP := $(shell pwd) | ||
FSBUILDER := $(TOP)/src/github.com/falling-sky/fsbuilder | ||
|
||
all: dist-prep sites download | ||
./build.pl --maxjobs 8 | ||
cd po && crowdin-cli upload sources --auto-update | ||
rsync -az work/. /var/www/beta.test-ipv6.com/. --exclude site --delete --progress | ||
- test -f /Applications/Safari.app/Contents/MacOS/Safari && open http://beta.test-ipv6.com/ | ||
|
||
beta: dist-prep sites download | ||
./build.pl --locale en_US --config beta.inc | ||
cd po && crowdin-cli upload sources --auto-update | ||
rsync -az work/. /var/www/beta.test-ipv6.com/. --exclude site --delete --progress | ||
- test -f /Applications/Safari.app/Contents/MacOS/Safari && open http://beta.test-ipv6.com/isp/ | ||
|
||
raw: dist-prep sites download | ||
./build.pl --locale en_US --config raw.inc | ||
rsync -az work/. /var/www/beta.test-ipv6.com/. --exclude site --delete --progress | ||
- test -f /Applications/Safari.app/Contents/MacOS/Safari && open http://beta.test-ipv6.com/isp/ | ||
|
||
download: | ||
cd po && ./download.pl | ||
|
||
download-snapshot: download | ||
rsync -av po/. po-snapshot/. | ||
|
||
download-diff: | ||
diff -cr po-snapshot/. po/. | ||
|
||
sites:: | ||
cd sites && ./parse-sites | ||
|
||
dist-prep: work sites | ||
rm -fr work | ||
mkdir -p work/images | ||
mkdir -p work/images-nc | ||
rsync -a images/. work/images/. | ||
rsync -a images/. work/images-nc/. | ||
|
||
dist-test: work sites | ||
test -f work/nat.html.zh_CN | ||
../dist_support/make-dist.pl --base content --branch test | ||
|
||
dist-stable: work sites | ||
test -f work/nat.html.zh_CN | ||
../dist_support/make-dist.pl --base content --branch stable | ||
|
||
dist: all dist-stable | ||
|
||
crowdin: | ||
make all | ||
git commit -m "latest translations" po | ||
make dist-stable | ||
|
||
|
||
$(FSBUILDER)/fsbuilder.go: | ||
mkdir -p $(TOP)/src/github.com/falling-sky | ||
cd $(TOP)/src/github.com/falling-sky && git clone git@github.com:falling-sky/fsbuilder.git | ||
|
||
$(FSBUILDER)/fsbuilder: $(FSBUILDER)/fsbuilder.go | ||
cd $(FSBUILDER) && GOPATH=$(TOP) go build | ||
|
||
fsbuilder: $(FSBUILDER)/fsbuilder | ||
cp $(FSBUILDER)/fsbuilder . |