Skip to content
Permalink
e76797a273
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 34 lines (26 sloc) 1.08 KB
#!/bin/bash
BASE_DIR=$(dirname $0)/..
TEI_DIR=$BASE_DIR/tei
DEP_DIR="$BASE_DIR/dependencies"
wd=$(pwd)
# download TEI repositories:
mkdir -vp "$TEI_DIR"
cd "$TEI_DIR"
git clone https://github.com/TEIC/TEI.git
git clone https://github.com/TEIC/Stylesheets.git
cd "$wd"
# download some schemata from TEI:
wget -P $BASE_DIR/schema/tei/rnc http://www.tei-c.org/Vault/P5/current/xml/tei/custom/schema/relaxng/tei_all.rnc
wget -P $BASE_DIR/schema/tei/rng http://www.tei-c.org/Vault/P5/current/xml/tei/custom/schema/relaxng/tei_all.rng
wget -P $BASE_DIR/schema/tei/odd http://www.tei-c.org/Vault/P5/current/xml/tei/odd/p5subset.xml
# download fxsl - a functional programming library for xslt:
# website: http://fxsl.sourceforge.net/
mkdir -vp "$DEP_DIR/fxsl"
wget -P "$DEP_DIR/fxsl" https://sourceforge.net/projects/fxsl/files/FXSL%20for%20XSLT%202/FXSL%202.0/fxsl-xslt2.zip
unzip -d "$DEP_DIR/fxsl" "$DEP_DIR/fxsl/*.zip"
# ln -s "../dependencies/fxsl/fxsl-xslt2" "$BASE_DIR/stylesheets/fxsl"
# patch fxsl:
cd $BASE_DIR
patch -p0 -i patch_fxsl.patch
cd "$wd"
$(realpath $BASE_DIR)/scripts/updateOutput.sh