[FFmpeg-cvslog] r21318 - trunk/configure
mru
subversion
Tue Jan 19 05:40:08 CET 2010
Author: mru
Date: Tue Jan 19 05:40:08 2010
New Revision: 21318
Log:
configure: add cp_if_changed function and use for config.h
Modified:
trunk/configure
Modified: trunk/configure
==============================================================================
--- trunk/configure Tue Jan 19 05:00:08 2010 (r21317)
+++ trunk/configure Tue Jan 19 05:40:08 2010 (r21318)
@@ -831,6 +831,12 @@ apply(){
"$@" < "$file" > "$file.tmp" && mv "$file.tmp" "$file" || rm "$file.tmp"
}
+cp_if_changed(){
+ cmp -s "$1" "$2" &&
+ echo "$2 is unchanged" ||
+ cp -f "$1" "$2"
+}
+
# CONFIG_LIST contains configurable options, while HAVE_LIST is for
# system-dependent things.
@@ -2909,9 +2915,7 @@ echo "#endif /* FFMPEG_CONFIG_H */" >> $
echo "endif # FFMPEG_CONFIG_MAK" >> config.mak
# Do not overwrite an unchanged config.h to avoid superfluous rebuilds.
-cmp -s $TMPH config.h &&
- echo "config.h is unchanged" ||
- mv -f $TMPH config.h
+cp_if_changed $TMPH config.h
# build tree in object directory if source path is different from current one
if enabled source_path_used; then
More information about the ffmpeg-cvslog
mailing list