Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: remove assets server #90

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,8 @@ help:
@echo ""
@echo " Targets"
@echo ""
@echo " dist Copy test fixtures to another dir and replace URL"
@echo " start Start the asset server"
@echo " validate-workspace Validate all assets as workspaces"
@echo " validate-ocrdzip Validate all assets as workspaces"
@echo ""
@echo " Variables"
@echo ""
@echo " PORT Port to run the asset server on"

# END-EVAL

Expand All @@ -22,24 +16,9 @@ REPO_URL = https://github.com/OCR-D/assets/raw/master/data/
# Strictness for page consistency checks
PAGE_STRICTNESS = lax

# Port to run the asset server on
PORT=5001

# BagIt update script
SCRIPT_UPDATE_BAGIT = $(PWD)/scripts/update-bagit.sh

# Copy test fixtures to another dir and replace URL
.PHONY: dist
dist:
mkdir -p $@
cp -r data/* $@
sed -i 's,$(REPO_URL),http://localhost:$(PORT)/,' $@/**/*.xml

# Start the asset server
start: dist
find $(PWD)/dist -name '*.xml'
cd dist && python2 -m SimpleHTTPServer $(PORT)

# Validate all
validate: validate-ocrdzip validate-workspace

Expand Down