Игра Маджонг | Mahjong game
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 line
509B

  1. #!/bin/bash
  2. # Создать файл JavaScript с набором иконок в формате Base64.
  3. function gen
  4. {
  5. name=$1
  6. fileName=$2
  7. target=$3
  8. echo -n "['$name', '" >> $target
  9. base64 $fileName | tr -d \\n >> $target
  10. echo -e "'],\n" >> $target
  11. }
  12. function genIcons
  13. {
  14. target=$1
  15. echo -e "function RR() { return [\n" > $target
  16. gen "layout" "boxes-solid.svg" $target
  17. gen "info" "info-solid.svg" $target
  18. echo "]; }" >> $target
  19. }
  20. genIcons "../2019-09-12.js"