Verified Commit 8d1a2276 authored by Pietro Albini's avatar Pietro Albini

repos/artworks: add repo

parent 8add21b6
[submodule "repos/italy-theme"]
path = repos/italy-theme
url = https://code.ubuntu-it.org/ubuntu-it-web/italy-theme.git/
[submodule "repos/artworks"]
path = repos/artworks
url = https://code.ubuntu-it.org/comunita/artworks.git/
......@@ -26,6 +26,7 @@ DIRS_IMAGES = themes pictograms
DIR_BUILD = build
DIR_ITALY_THEME = repos/italy-theme
DIR_ARTWORKS = repos/artworks
JS_MINIFIER = python3 -m rjsmin
CSS_MINIFIER = python3 -m rcssmin
......@@ -46,9 +47,9 @@ images_svg = $(patsubst %,$(DIR_BUILD)/%,$(shell find $(DIRS_IMAGES) -type f -na
.PHONY: build clean italy-theme build-inner
.PHONY: build clean italy-theme artworks build-inner
build: italy-theme
build: italy-theme artworks
@$(MAKE) build-inner
build-inner: $(js) $(css) $(fonts_ttf) $(fonts_eot) $(fonts_woff) $(images_png) $(images_jpg) $(images_svg)
......@@ -64,6 +65,11 @@ italy-theme:
@mkdir -p $(DIR_BUILD)/themes/italy
@cp $(DIR_ITALY_THEME)/demo.html $(DIR_BUILD)/themes/italy
artworks:
@git submodule update --init --recursive $(DIR_ARTWORKS)
@mkdir -p $(DIR_BUILD)/logo
@cp -r $(DIR_ARTWORKS)/logo/* $(DIR_BUILD)/logo
$(DIR_BUILD)/%.min.js: %.js
@mkdir -p $(dir $@)
@$(JS_MINIFIER) < $< > $@
......
artworks @ 4b0547d9
Subproject commit 4b0547d9993286d051e382b57d092e44a5bbb4d9
......@@ -25,7 +25,7 @@ IFS=$'\n\t'
REPOS_DIR="repos"
repos="$(ls "${REPOS_DIR}")"
for repo in "$repos"; do
for repo in $repos; do
Please register or sign in to reply
# Update the repo
git -C "${REPOS_DIR}/${repo}" fetch --all
git -C "${REPOS_DIR}/${repo}" reset --hard origin/master
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment