commit 746893d

uint  ·  2026-10-14 18:26:48 +0000 UTC
parent f9bc8bd
update resource packs description
2 files changed,  +8, -60
+8, -2
 1@@ -1,3 +1,9 @@
 2-The default texture pack is not included; for now, if you want to use it,
 3-extract it to a directory called `default`.
 4+~~The default texture pack is not included; for now, if you want to use it,~~
 5+~~extract it to a directory called `default`.~~
 6+
 7+~~For fonts, you must also provide your own `glyph_sizes.bin` file and put it~~
 8+~~into `assets/resourcepacks/default/font/glyph_sizes.bin`~~
 9+
10+The resources for a supported version should be placed under
11+`assets/resources/X.X.X`, where `X.X.X` is the game version.
12 
+0, -58
 1@@ -1,58 +0,0 @@
 2-#!/usr/bin/env sh
 3-set -eu
 4-
 5-if ! command -v xclip >/dev/null 2>&1; then
 6-	printf '%s\n' 'copy-files-to-clipboard: xclip was not found in PATH' >&2
 7-	exit 1
 8-fi
 9-
10-repo_root=~/programming/c/magnolia
11-file_list=$(mktemp)
12-
13-cleanup()
14-{
15-	rm -f "$file_list"
16-}
17-
18-trap cleanup EXIT HUP INT TERM
19-
20-cd "$repo_root"
21-
22-find . \
23-	\( \
24-		-path './.git' -o \
25-		-path './.cache' -o \
26-		-path './build' -o \
27-		-path './build-*' -o \
28-		-path './vendor/sokol_gfx.h' -o \
29-		-path './vendor/stb_image_c89.h' -o \
30-		-path './vendor/small3dlib.h' -o \
31-		-path './vendor/HandmadeMath.h' -o \
32-		-path './subprojects/*' -o \
33-	\) -prune -o \
34-	-type f \
35-	\( \
36-		-name 'meson.build' -o \
37-		-name 'meson.options' -o \
38-		-name 'meson_options.txt' -o \
39-		-name '*.c' -o \
40-		-name '*.h' \
41-	\) -print \
42-	| LC_ALL=C sort > "$file_list"
43-
44-if [ ! -s "$file_list" ]; then
45-	printf '%s\n' 'copy-files-to-clipboard: no files found' >&2
46-	exit 1
47-fi
48-
49-{
50-	while IFS= read -r path; do
51-		path=${path#./}
52-		printf '===== %s =====\n' "$path"
53-		cat -- "$path"
54-		printf '\n\n'
55-	done < "$file_list"
56-} | xclip -selection clipboard
57-
58-count=$(wc -l < "$file_list" | tr -d ' ')
59-printf 'Copied %s files to the clipboard.\n' "$count"