Skip to content

Commit

Permalink
Re-enable diffs now that we have the two-spec version as the status quo
Browse files Browse the repository at this point in the history
  • Loading branch information
ndw committed Nov 13, 2014
1 parent 02a2411 commit 530a43c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 15 deletions.
6 changes: 3 additions & 3 deletions langspec/xproc20-steps/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ CLASSPATH=$(subst $(space),:,$(wildcard ../../lib/*.jar)):../../lib
SAXON=java -cp $(CLASSPATH) -jar ../../lib/saxon9he.jar
CALABASH=java -cp $(CLASSPATH) com.xmlcalabash.drivers.Main -c ../../.calabash

TARGETS=changelog.html Overview.html
TARGETS=changelog.html Overview.html diff.html

all: $(TARGETS)

Expand All @@ -31,8 +31,8 @@ Overview.html: ,steps.xml typed-pipeline-library.xml error-list.xml \

# ============================================================

diff.html: langspec.html
../lib/make-diff.sh
diff.html: Overview.html
../../lib/make-diff.sh xproc20-steps

changelog.html: changelog.xml
@echo Format changelog
Expand Down
9 changes: 2 additions & 7 deletions langspec/xproc20/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,10 @@ CLASSPATH=$(subst $(space),:,$(wildcard ../../lib/*.jar)):../../lib
SAXON=java -cp $(CLASSPATH) -jar ../../lib/saxon9he.jar
CALABASH=java -cp $(CLASSPATH) com.xmlcalabash.drivers.Main -c ../../.calabash

TARGETS=changelog.html Overview.html
TARGETS=changelog.html Overview.html diff.html

all: $(TARGETS)

namespace-documents:
$(MAKE) -C ns-p
$(MAKE) -C ns-c
$(MAKE) -C ns-err

# ============================================================

Overview.html: ,xproc20.xml error-list.xml \
Expand Down Expand Up @@ -51,7 +46,7 @@ Overview.html: ,xproc20.xml error-list.xml \
# ============================================================

diff.html: Overview.html
../lib/make-diff.sh
../../lib/make-diff.sh xproc20

changelog.html: changelog.xml
@echo Format changelog
Expand Down
5 changes: 3 additions & 2 deletions lib/make-diff.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
SPEC=$1

if [ "$DELTA_BASE" != "" ] && [ "$DELTA_NAME" != "" ] && [ "DELTA_PASS" != "" ]
then
Expand All @@ -9,7 +10,7 @@ then
for f in `cat filelist`; do
curl -s -o $f -u "$DELTA_NAME:$DELTA_PASS" -s "$DELTA_BASE/$f"
done
make
make SPEC="$SPEC"
cd ..
mv delta/diff.html .
rm -rf delta
Expand All @@ -21,7 +22,7 @@ then
for f in `cat $DELTA_LOCAL/filelist`; do
cp "$DELTA_LOCAL/$f" .
done
make
make SPEC="$SPEC"
cd ..
mv delta/diff.html .
rm -rf delta
Expand Down
3 changes: 0 additions & 3 deletions style/formatspec.xpl
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,8 @@
select="substring-after(
/c:result/c:env[@name='TRAVIS_REPO_SLUG']/@value,
'/')"/>
<!--
<p:with-param name="auto-diff"
select="string((/c:result/c:env[@name='DELTA_BASE' or @name='DELTA_LOCAL'])[1]/@value)"/>
-->
<p:with-param name="auto-diff" select="''"/>
</dbp:docbook>

</p:declare-step>

0 comments on commit 530a43c

Please sign in to comment.