1
0
mirror of https://github.com/danog/gojekyll.git synced 2024-11-26 19:14:40 +01:00

scripts/compare only uses the basename in the dest

This commit is contained in:
Oliver Steele 2017-09-02 12:09:58 -04:00
parent bd441a3d47
commit 2786ee38ce

View File

@ -1,7 +1,8 @@
#!/bin/bash -eu
ddir=/tmp/$USER/gojekyll-compare
basename=$(basename $1)
./scripts/gojekyll build -s $1 -d $ddir/$1.go
(cd $1 && bundle exec jekyll build -d $ddir/$1.jekyll)
ksdiff $ddir/$1.jekyll $ddir/$1.go
./scripts/gojekyll build -s $1 -d $ddir/$basename.go
(cd $1 && bundle exec jekyll build -d $ddir/$basename.jekyll)
ksdiff $ddir/$basename.jekyll $ddir/$basename.go