2022-04-29 11:30:26 +00:00
|
|
|
SHELL := /bin/bash
|
|
|
|
|
|
|
|
|
|
.PHONY: install # install in a virtualenv
|
|
|
|
|
install:
|
|
|
|
|
python3 -m venv .venv
|
|
|
|
|
source .venv/bin/activate && \
|
2022-06-04 12:50:26 +00:00
|
|
|
pip3 install git+https://github.com/nodiscc/hecat.git@hecat-process
|
2022-04-29 11:30:26 +00:00
|
|
|
|
|
|
|
|
.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
|
2022-06-04 12:50:26 +00:00
|
|
|
rm -rf tags/ software/ platforms/
|
|
|
|
|
mkdir -p tags/ software/ platforms/
|
2022-04-29 11:30:26 +00:00
|
|
|
source .venv/bin/activate && \
|
|
|
|
|
hecat import --source-file awesome-selfhosted/README.md --output-directory ./
|
|
|
|
|
|
2022-06-04 13:01:18 +00:00
|
|
|
.PHONY: process # apply automatic processing (gather github metadata)
|
|
|
|
|
process: install
|
|
|
|
|
source .venv/bin/activate && \
|
|
|
|
|
hecat process --processors github_metadata --source-directory ./
|
|
|
|
|
|
2022-04-29 11:30:26 +00:00
|
|
|
.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
|