Skip to contentSkip to conversation

configure: remove confusing file manipulation

PATCH Applied Ed Maste 2 participants 2 messages May 22, 2013 – May 25, 2013

lore
Share & tools
lore

Ed Maste

author
#0 lore raw

PATCH 1/1 configure: remove confusing file manipulation

The configure script had some code to manipulate config-host.ld~ (i.e., a common backup filename), comparing it with the newly-generated file. I believe the sense of the comparison was backwards.

Since it seemed to serve little purpose anyway, remove it to avoid any confusion.

---
 configure | 9 ---------
 1 file changed, 9 deletions(-)
configure +0 -9
index 5ae7e4a..cfdb564 100755
@@ -4104,17 +4104,8 @@ if test "$gcov" = "yes" ; then
 fi
 
 # generate list of library paths for linker script
-
 $ld --verbose -v 2> /dev/null | grep SEARCH_DIR > ${config_host_ld}
 
-if test -f ${config_host_ld}~ ; then
-  if cmp -s $config_host_ld ${config_host_ld}~ ; then
-    mv ${config_host_ld}~ $config_host_ld
-  else
-    rm ${config_host_ld}~
-  fi
-fi
-
 # use included Linux headers
 if test "$linux" = "yes" ; then
   mkdir -p linux-headers
Signature · 1 line
1.7.11.5
#1 lore raw
Quoted 6 lines · Ed Maste

The configure script had some code to manipulate config-host.ld~ (i.e., a common backup filename), comparing it with the newly-generated file. I believe the sense of the comparison was backwards.

Since it seemed to serve little purpose anyway, remove it to avoid any confusion.

Thanks, applied to the trivial patches queue.

/mjt