1
0
Fork 0
mirror of https://github.com/diamondburned/cchat-gtk.git synced 2024-12-23 12:46:45 +00:00
cchat-gtk/icons/byte

16 lines
302 B
Plaintext
Raw Normal View History

2020-07-16 05:41:21 +00:00
#!/usr/bin/env bash
# Script to embed a file to Go.
for file in "$@"; {
name="${file%.*}"
name="${name//[^[:alnum:]]/_}" # sanitize
file2byteslice \
-input "$file" \
-output "${name}.go" \
-package icons \
-var "__${name}"
echo "Written $file to \`var __$name'"
}