1
1
mirror of https://github.com/github/semantic.git synced 2024-11-24 08:54:07 +03:00

Update docs and scripts with new command line args

This commit is contained in:
Timothy Clem 2017-04-05 15:13:33 -07:00
parent 1dd54d35d9
commit 9273f4969a
2 changed files with 8 additions and 19 deletions

View File

@ -1,11 +0,0 @@
# Build configuration for https://atom.io/packages/build
cmd: stack build
name: semantic-diff
env:
PATH: ~/.local/bin:~/Developer/Tools:~/Library/Haskell/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
targets:
test:
cmd: stack build semantic-diff:test
keymap: cmd-u
errorMatch:
- \n(?<file>/[^:]+):(?<line>\d+):((?<col>\d+):)?

View File

@ -40,28 +40,28 @@ generate_example () {
diffFileBA="${fileB%%.*}.diffB-A.txt"
status $parseFileA
stack exec semantic-diff -- --sexpression --parse $fileA > $parseFileA
stack exec semantic parse -- --sexpression $fileA > $parseFileA
status $parseFileB
stack exec semantic-diff -- --sexpression --parse $fileB > $parseFileB
stack exec semantic parse -- --sexpression $fileB > $parseFileB
status $diffFileAddA
stack exec semantic-diff -- --sexpression --no-index /dev/null $fileA > $diffFileAddA
stack exec semantic diff -- --sexpression /dev/null $fileA > $diffFileAddA
status $diffFileRemoveA
stack exec semantic-diff -- --sexpression --no-index $fileA /dev/null > $diffFileRemoveA
stack exec semantic diff -- --sexpression $fileA /dev/null > $diffFileRemoveA
status $diffFileAddB
stack exec semantic-diff -- --sexpression --no-index /dev/null $fileB > $diffFileAddB
stack exec semantic diff -- --sexpression --no-index /dev/null $fileB > $diffFileAddB
status $diffFileRemoveB
stack exec semantic-diff -- --sexpression --no-index $fileB /dev/null > $diffFileRemoveB
stack exec semantic diff -- --sexpression $fileB /dev/null > $diffFileRemoveB
status $diffFileAB
stack exec semantic-diff -- --sexpression --no-index $fileA $fileB > $diffFileAB
stack exec semantic diff -- --sexpression $fileA $fileB > $diffFileAB
status $diffFileBA
stack exec semantic-diff -- --sexpression --no-index $fileB $fileA > $diffFileBA
stack exec semantic diff -- --sexpression $fileB $fileA > $diffFileBA
}
if [[ -d $1 ]]; then