add helper to create new emoji.txt file

This commit is contained in:
creme 2020-01-28 19:01:42 +01:00
parent 55fd32d57f
commit 4c8c44f40b
No known key found for this signature in database
GPG key ID: C147C3B7FBDF08D0

View file

@ -8,7 +8,7 @@ path: `/var/lib/pleroma/`
includes also emojis from: includes also emojis from:
- https://fedi.absturztau.be/emoji-packs/index.html - https://fedi.absturztau.be/emoji-packs/index.html
**notice** #### notice
please consider adding emojis to `emoji.txt`! please consider adding emojis to `emoji.txt`!
@ -17,3 +17,12 @@ example:
foo, /emoji/custom/foo.png, Tag1,Tag2 foo, /emoji/custom/foo.png, Tag1,Tag2
bla, /emoji/custom/bla.png bla, /emoji/custom/bla.png
``` ```
#### add new pack
```
newpack='MYSTUFF'
cd static/emoji/"$newpack"
for file in $(dir); do printf '%s, /emoji/%s/%s\n' "${file%.*}" "$newpack" "$file" >> tmp.txt ; done
sort -o emoji.txt tmp.txt ; rm tmp.txt
```