Обновление до 17.0.4
This commit is contained in:
parent
608f7fa600
commit
50bec848b3
22
Makefile
Normal file
22
Makefile
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
V:=$(shell grep -F "IOSEVKA_VERSION=" build-iosevka-prog-font.sh | sed 's/.*=//')
|
||||||
|
TOP_DIR:=$(shell pwd)
|
||||||
|
BUILD_DIR:=$(TOP_DIR)/dist
|
||||||
|
|
||||||
|
all:
|
||||||
|
./build-iosevka-prog-font.sh
|
||||||
|
|
||||||
|
dist: $(BUILD_DIR)/iosevka-prog-$(V).tar.xz
|
||||||
|
|
||||||
|
$(BUILD_DIR)/iosevka-prog-$(V).tar.xz: $(BUILD_DIR)/iosevka-prog/ttf/*.ttf
|
||||||
|
cd $(BUILD_DIR)/iosevka-prog/ttf; tar Jcf $(BUILD_DIR)/iosevka-prog-$(V).tar.xz *.ttf
|
||||||
|
|
||||||
|
upload: dist
|
||||||
|
git tag $(V)
|
||||||
|
tea r c --repo f1x1t/iosevka-prog-font-builder -t $(V) --tag $(V) \
|
||||||
|
-a $(BUILD_DIR)/iosevka-prog-$(V).tar.xz
|
||||||
|
git tag -d $(V)
|
||||||
|
git push
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf $(BUILD_DIR)
|
||||||
|
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
IOSEVKA_VERSION="17.0.2"
|
IOSEVKA_VERSION=17.0.4
|
||||||
FONT_NAME=iosevka-prog
|
FONT_NAME=iosevka-prog
|
||||||
FILE=$( readlink -f "${BASH_SOURCE[0]}" )
|
FILE=$( readlink -f "${BASH_SOURCE[0]}" )
|
||||||
DIR=$( dirname "${FILE}" )
|
DIR=$( dirname "${FILE}" )
|
||||||
@ -17,11 +17,11 @@ if [ -r "${CONFIG}" ]; then
|
|||||||
docker run -e FONT_VERSION="${IOSEVKA_VERSION}" -it -v "$DIR":/build avivace/iosevka-build -- ttf::${FONT_NAME}
|
docker run -e FONT_VERSION="${IOSEVKA_VERSION}" -it -v "$DIR":/build avivace/iosevka-build -- ttf::${FONT_NAME}
|
||||||
sudo chown -R "$(id -u)":"$(id -g)" "${DIST}"
|
sudo chown -R "$(id -u)":"$(id -g)" "${DIST}"
|
||||||
mkdir -p "${OBLIQUE}"
|
mkdir -p "${OBLIQUE}"
|
||||||
cp "${OUT_DIR}/${FONT_NAME}-oblique.ttf" "${OBLIQUE}"
|
cp -af "${OUT_DIR}/${FONT_NAME}-oblique.ttf" "${OBLIQUE}"
|
||||||
docker run -v "${OBLIQUE}":/in -v "${OUT_DIR}":/out nerdfonts/patcher --complete --careful --adjust-line-height
|
docker run -v "${OBLIQUE}":/in -v "${OUT_DIR}":/out nerdfonts/patcher --complete --careful --adjust-line-height && true
|
||||||
mkdir -p "${REGULAR}"
|
mkdir -p "${REGULAR}"
|
||||||
cp "${OUT_DIR}/${FONT_NAME}-regular.ttf" "${REGULAR}"
|
cp -af "${OUT_DIR}/${FONT_NAME}-regular.ttf" "${REGULAR}"
|
||||||
docker run -v "${REGULAR}":/in -v "${OUT_DIR}":/out nerdfonts/patcher --complete --careful --adjust-line-height --mono --removeligatures
|
docker run -v "${REGULAR}":/in -v "${OUT_DIR}":/out nerdfonts/patcher --complete --careful --adjust-line-height --mono --removeligatures && true
|
||||||
else
|
else
|
||||||
echo "Docker executable not found"
|
echo "Docker executable not found"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user