* lib/ylwrap (handle_renaming): This name has become out-of-sync with the subroutine purpose; so rename it ... (tempfile_deploy): ... to this. --- ChangeLog | 7 +++++++ lib/ylwrap | 12 ++++++------ 2 files changed, 13 insertions(+), 6 deletions(-)
diff --git a/ChangeLog b/ChangeLog index 52656b7..72dd83b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2011-05-06 Stefano Lattarini <stefano.lattar...@gmail.com> + ylwrap: rename 'handle_renaming' to 'tempfile_deploy' + * lib/ylwrap (handle_renaming): This name has become out-of-sync + with the subroutine purpose; so rename it ... + (tempfile_deploy): ... to this. + +2011-05-06 Stefano Lattarini <stefano.lattar...@gmail.com> + ylwrap: fix indentation * lib/ylwrap: Make indentation consistent (two spaces). diff --git a/lib/ylwrap b/lib/ylwrap index 90b087b..7edebb5 100755 --- a/lib/ylwrap +++ b/lib/ylwrap @@ -78,8 +78,8 @@ set_yacc_filenames () y_output=y.output } -# Usage: handle_renaming FROM TARGET -handle_renaming () +# Usage: tempfile_deploy FROM TARGET +tempfile_deploy () { from=$1 target=$2 @@ -243,20 +243,20 @@ case $wrapped in # changed. This avoid useless recompilations. However the # parser itself should always be updated, because it is the # destination of the .y.c rule in the Makefile. - handle_renaming $y_tab_c $output_stem.$c_ext + tempfile_deploy $y_tab_c $output_stem.$c_ext # If the `-d' option is not used, we don't want an error when the # header file is "missing". Similarly, if `-v' is not used, we # don't want an error when the `y.output' file is "missing". if test -f $tempdir/$y_tab_h; then - handle_renaming $y_tab_h $tempdir/header.tmp + tempfile_deploy $y_tab_h $tempdir/header.tmp move_if_change $tempdir/header.tmp $output_stem.$h_ext fi if test -f $tempdir/$y_output; then - handle_renaming $y_output $output_stem.output + tempfile_deploy $y_output $output_stem.output fi ;; lex) - handle_renaming $lex_output_root.c $output + tempfile_deploy $lex_output_root.c $output ;; *) exit 255 # Not reached. -- 1.7.2.3