Skip to content

Commit 753ac0b

Browse files
committed
Fix update_plugin for OSX (bad sed was used there)
1 parent eac7ac6 commit 753ac0b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

template-coq/update_plugin.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#!/bin/bash
2-
1+
#!/usr/bin/env bash
2+
SED=`which gsed || which sed`
33
TOCOPY="ast_denoter.ml ast_quoter.ml denoter.ml plugin_core.ml plugin_core.mli reification.ml quoter.ml run_extractable.ml run_extractable.mli tm_util.ml"
44

55
# Test is gen-src is older than src
@@ -14,7 +14,7 @@ then
1414
(cd gen-src; ./to-lower.sh)
1515
rm -f gen-src/*.d
1616
# Fix an extraction bug: wrong type annotation on eq_equivalence
17-
sed -i.bak 's/\r//g' gen-src/cRelationClasses.mli
17+
${SED} -i.bak 's/\r//g' gen-src/cRelationClasses.mli
1818
patch -N -p0 < extraction.patch
1919
exit 0
2020
else

0 commit comments

Comments
 (0)