ajustes en el makefile
This commit is contained in:
parent
dcc47ad258
commit
9b255a23e0
1 changed files with 6 additions and 9 deletions
15
Makefile
15
Makefile
|
@ -1,3 +1,4 @@
|
||||||
|
.SHELL := /bin/bash
|
||||||
# Incluir las variables de entorno
|
# Incluir las variables de entorno
|
||||||
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
|
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
|
||||||
root_dir := $(patsubst %/,%,$(dir $(mkfile_path)))
|
root_dir := $(patsubst %/,%,$(dir $(mkfile_path)))
|
||||||
|
@ -53,10 +54,12 @@ save:
|
||||||
date +%F | xargs git tag -f
|
date +%F | xargs git tag -f
|
||||||
@echo -e "\a"
|
@echo -e "\a"
|
||||||
|
|
||||||
# Crear el directorio donde se almacenan las gemas binarias
|
# proyectos.
|
||||||
../gems/:
|
../gems/:
|
||||||
mkdir -p $@
|
mkdir -p $@
|
||||||
|
|
||||||
|
# Crear el directorio donde se almacenan las gemas binarias
|
||||||
|
# TODO: Mover a un proyecto propio, porque lo utilizamos en todos los
|
||||||
gem_dir := $(shell readlink -f ../gems)
|
gem_dir := $(shell readlink -f ../gems)
|
||||||
gem_cache_dir := $(gem_dir)/cache
|
gem_cache_dir := $(gem_dir)/cache
|
||||||
gem_binary_dir := $(gem_dir)/$(alpine_version)
|
gem_binary_dir := $(gem_dir)/$(alpine_version)
|
||||||
|
@ -92,18 +95,12 @@ dirs := $(patsubst %,root/%,data sites deploy public)
|
||||||
$(dirs):
|
$(dirs):
|
||||||
mkdir -p $@
|
mkdir -p $@
|
||||||
|
|
||||||
app/assets/fonts/forkawesome-webfont.woff2: fa.txt
|
|
||||||
which glyphhanger || npm i -g glyphhanger
|
|
||||||
grep -v "^#" fa.txt | sed "s/^/U+/" | cut -d " " -f 1 | tr "\n" "," | xargs -rI {} glyphhanger --subset=node_modules/fork-awesome/fonts/forkawesome-webfont.ttf --formats=woff2 --whitelist="{}"
|
|
||||||
mv node_modules/fork-awesome/fonts/forkawesome-webfont-subset.woff2 $@
|
|
||||||
|
|
||||||
fa: app/assets/fonts/forkawesome-webfont.woff2 ## Fork Awesome
|
|
||||||
|
|
||||||
ota: assets
|
ota: assets
|
||||||
sudo chgrp -R 82 public/
|
sudo chgrp -R 82 public/
|
||||||
rsync -av --delete-after public/ athshe:/srv/sutty/srv/http/data/_public/
|
rsync -avi --delete-after public/ athshe:/srv/sutty/srv/http/data/_public/
|
||||||
|
|
||||||
# Hotfixes
|
# Hotfixes
|
||||||
|
commit ?= origin/rails
|
||||||
ota-rb:
|
ota-rb:
|
||||||
umask 022; git format-patch $(commit)
|
umask 022; git format-patch $(commit)
|
||||||
scp ./0*.patch root@athshe.sutty.nl:/tmp/
|
scp ./0*.patch root@athshe.sutty.nl:/tmp/
|
||||||
|
|
Loading…
Reference in a new issue