1
0
Fork 0
mirror of https://github.com/diamondburned/cchat-gtk.git synced 2024-11-01 03:54:16 +00:00
cchat-gtk/icons/byte

16 lines
302 B
Bash
Executable file

#!/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'"
}