-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·50 lines (38 loc) · 1.6 KB
/
build.sh
File metadata and controls
executable file
·50 lines (38 loc) · 1.6 KB
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
#!/usr/bin/env bash
###############################################################################
# #
# Build script for Deepslate #
# Written in 2023 by Silver Sandstone <@SilverSandstone@craftodon.social> #
# #
# To the extent possible under law, the author has dedicated all copyright #
# and related and neighbouring rights to this software to the public #
# domain worldwide. This software is distributed without any warranty. #
# #
# You should have received a copy of the CC0 Public Domain Dedication #
# along with this software. If not, see #
# <https://creativecommons.org/publicdomain/zero/1.0/>. #
# #
###############################################################################
function status()
{
printf '\n\e[1m%s\e[m\n' "$*"
}
set -eu
cd "$(dirname "$0")"
status 'Generating documentation...'
ldoc './' --dir 'doc/' --title 'Deepslate API Reference'
status 'Creating distribution...'
archive='deepslate.zip'
[[ -e "$archive" ]] && rm "$archive"
zip -r "$archive" -- \
*.lua \
mod.conf \
settingtypes.txt \
build.sh \
README.md \
LICENSE.md \
CHANGELOG.md \
screenshot.png \
textures/ \
doc/
status 'Build complete.'