Commit a900c00235a5357cea115ce1f2ccf76c8586d2ef
Committed by
Anthony Liguori
1 parent
525061bf
use same algorithm for testing and
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Showing
1 changed file
with
7 additions
and
1 deletions
configure
... | ... | @@ -2107,7 +2107,13 @@ fi |
2107 | 2107 | |
2108 | 2108 | $source_path/create_config < $config_mak > $config_h |
2109 | 2109 | |
2110 | -test -f ${config_h}~ && cmp -s $config_h ${config_h}~ && mv ${config_h}~ $config_h | |
2110 | +if test -f ${config_h}~ ; then | |
2111 | + if cmp -s $config_h ${config_h}~ ; then | |
2112 | + mv ${config_h}~ $config_h | |
2113 | + else | |
2114 | + rm ${config_h}~ | |
2115 | + fi | |
2116 | +fi | |
2111 | 2117 | |
2112 | 2118 | done # for target in $targets |
2113 | 2119 | ... | ... |