diff options
author | Morgan Deters <mdeters@gmail.com> | 2012-09-25 18:57:48 +0000 |
---|---|---|
committer | Morgan Deters <mdeters@gmail.com> | 2012-09-25 18:57:48 +0000 |
commit | 94b685e149119bbe75266481f6de3a0915e7c10a (patch) | |
tree | addbbdd36ca34f65c7d3d092c0f1fc5d400c6dac /src/options | |
parent | 89bcd4deee07a2c61d30a9dfca64e58e8c2d701b (diff) |
fix some Mac issues
Diffstat (limited to 'src/options')
-rwxr-xr-x | src/options/mkoptions | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/options/mkoptions b/src/options/mkoptions index 69d7643c7..8947aba42 100755 --- a/src/options/mkoptions +++ b/src/options/mkoptions @@ -1153,6 +1153,7 @@ function output_module { module_global_definitions \ template \ ; do + echo -n . eval text="\${text//\\\$\\{$var\\}/\${$var}}" done error="$(echo "$text" | grep '.*\${[^}]*}.*' | head -n 1)" @@ -1205,10 +1206,12 @@ EOF ) >"$output.tmp" + echo -n . if diff -q "$output" "$output.tmp" &>/dev/null; then rm -f "$output.tmp" else mv -f "$output.tmp" "$output" + echo echo "regenerated $output" fi } @@ -1308,6 +1311,7 @@ for var in \ common_manpage_smt_documentation \ remaining_manpage_smt_documentation \ ; do + echo -n . eval text="\${text//\\\$\\{$var\\}/\${$var}}" done error="$(echo "$text" | grep '.*\${[^}]*}.*' | head -n 1)" @@ -1361,8 +1365,10 @@ echo "$text" ) >"$output.tmp" -diff -q "$output" "$output.tmp" &>/dev/null || (mv -f "$output.tmp" "$output" && echo "regenerated $output") +echo -n . +diff -q "$output" "$output.tmp" &>/dev/null || (mv -f "$output.tmp" "$output" && echo && echo "regenerated $output") rm -f "$output.tmp" done +echo |