From 4c8c44f40b53840ff90be71ea06655d321abe038 Mon Sep 17 00:00:00 2001 From: creme Date: Tue, 28 Jan 2020 19:01:42 +0100 Subject: [PATCH] add helper to create new emoji.txt file --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 44e349a3..e58bff09 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ path: `/var/lib/pleroma/` includes also emojis from: - https://fedi.absturztau.be/emoji-packs/index.html -**notice** +#### notice please consider adding emojis to `emoji.txt`! @@ -17,3 +17,12 @@ example: foo, /emoji/custom/foo.png, Tag1,Tag2 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 +```