awesome-selfhosted-data/Makefile
nodiscc 8001b7de05 tools: makefile: delete software/tags/platforms data before full initial import
- use WIP version of the generation tool/test new features
2022-06-04 14:51:27 +02:00

24 lines
1 KiB
Makefile

SHELL := /bin/bash
.PHONY: install # install in a virtualenv
install:
python3 -m venv .venv
source .venv/bin/activate && \
pip3 install git+https://github.com/nodiscc/hecat.git@hecat-process
.PHONY: import # import data from original list at https://github.com/awesome-selfhosted/awesome-selfhosted
import: install
rm -rf awesome-selfhosted && git clone --depth=1 https://github.com/awesome-selfhosted/awesome-selfhosted
cp awesome-selfhosted/.github/.mailmap .mailmap
cp awesome-selfhosted/AUTHORS.md AUTHORS.md
rm -rf tags/ software/ platforms/
mkdir -p tags/ software/ platforms/
source .venv/bin/activate && \
hecat import --source-file awesome-selfhosted/README.md --output-directory ./
.PHONY: build # build markdown singlepage document from yaml data
build: install
rm -rf awesome-selfhosted && git clone https://github.com/awesome-selfhosted/awesome-selfhosted
source .venv/bin/activate && \
hecat build --source-directory ./ --output-directory awesome-selfhosted --output-file README.md
cd awesome-selfhosted && git diff --color=always