summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFeuerfuchs <git@feuerfuchs.dev>2019-08-04 19:16:39 +0200
committerFeuerfuchs <git@feuerfuchs.dev>2019-08-04 19:16:39 +0200
commit97a5a1ea71161d119346918ec46e1cc8a19c9e82 (patch)
treec1d1b0aefa7389b5a95605e2d33a6106d41df869
parentUpdate determined (diff)
downloadblobfox-emojis-97a5a1ea71161d119346918ec46e1cc8a19c9e82.tar.gz
blobfox-emojis-97a5a1ea71161d119346918ec46e1cc8a19c9e82.tar.bz2
blobfox-emojis-97a5a1ea71161d119346918ec46e1cc8a19c9e82.zip
Created script to generate a Pleroma emoji pack
-rw-r--r--.gitignore2
-rwxr-xr-xgen.sh15
2 files changed, 17 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e33609d..6396bb2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,3 @@
1*.png 1*.png
2*.json
3*.zip
diff --git a/gen.sh b/gen.sh
new file mode 100755
index 0000000..5704ba3
--- /dev/null
+++ b/gen.sh
@@ -0,0 +1,15 @@
1#!/bin/sh
2
3IDS=`find . -type f -iname '*.png' -exec sh -c 'x=${0#./}; printf "%s|" ${x%.svg.png}' {} \;`
4FILES=`find . -type f -iname '*.png' -exec sh -c 'printf "%s|" ${0#./}' {} \;`
5
6FILELIST="${IDS%|}
7${FILES%|}"
8
9jq -Rn '
10( input | split("|") ) as $keys |
11( inputs | split("|") ) as $vals |
12[[$keys, $vals] | transpose[] | {key:.[0],value:.[1]}] | from_entries
13' <<<"$FILELIST">blobfox.json
14
15zip blobfox.zip *.png