Игра Маджонг | Mahjong game
25개 이상의 토픽을 선택하실 수 없습니다.
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #!/bin/bash
- # Создать файл JavaScript с набором иконок в формате Base64.
-
- function gen
- {
- name=$1
- fileName=$2
- target=$3
-
- echo -n "'$name' : '" >> $target
- base64 $fileName | tr -d \\n >> $target
- echo -e "',\n" >> $target
- }
-
- function genIcons
- {
- target=$1
-
- echo -e "function RR() { return {\n" > $target
-
- gen "layout" "boxes-solid.svg" $target
- gen "info" "info-solid.svg" $target
-
- echo "}; }" >> $target
- }
-
- genIcons "../2019-09-12.js"
|