authd/makefile

42 lines
923 B
Makefile
Raw Normal View History

2023-05-29 20:41:12 +02:00
all: build
build:
shards build
NAME ?= John
EMAIL ?= john@example.com
2023-06-08 17:33:43 +02:00
PASSWORD_FILE ?= /tmp/PASSWORD
DATA_DIRECTORY ?= /tmp/DATA-AUTHD
setup:
@[ -f $(PASSWORD_FILE) ] || echo -n "coucou" > $(PASSWORD_FILE)
run-authd: setup
./bin/authd -k /tmp/PASSWORD -R -E --storage $(DATA_DIRECTORY)
2023-05-29 20:41:12 +02:00
# First user always is the admin.
add-first-user:
./bin/authc bootstrap $(NAME) $(EMAIL)
2023-05-29 20:41:12 +02:00
add-user:
./bin/authc user add $(NAME) $(EMAIL)
2023-06-12 20:54:41 +02:00
print-messages:
cat src/requests/*.cr | ./bin/get-messages.awk
2023-06-13 03:16:59 +02:00
print-message-numbers:
2023-06-14 01:47:40 +02:00
make -s print-messages | grep -E "^[0-9]" | sort -n
print-messages-without-comments:
2023-06-14 01:47:40 +02:00
make -s print-messages | grep -vE '^[[:blank:]]+#'
print-error-messages:
cat src/responses/*.cr | ./bin/get-messages.awk
print-error-message-numbers:
make -s print-error-messages | grep -E "^[0-9]" | sort -n
print-error-messages-without-comments:
make -s print-error-messages | grep -vE '^[[:blank:]]+#'