From 89a2b7016de2639a151652dc2c588e1da4429ff6 Mon Sep 17 00:00:00 2001 From: Manuel Canales Esparcia Date: Sun, 9 Apr 2006 19:04:00 +0000 Subject: [PATCH] Added inline_doc fragment and trailing space clean-up. --- extras/farce | 52 ++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 38 insertions(+), 14 deletions(-) diff --git a/extras/farce b/extras/farce index 5c9727d..129e7ba 100755 --- a/extras/farce +++ b/extras/farce @@ -1,5 +1,11 @@ #!/bin/bash +# Acknowledgment: +# The following code is a no-modified version (except for this comment +# and the inline_doc fragment) of an original work written by +# Ken Moffat and is included here with his permission. +# + # FARCE: Farce Assists Rebuild Comparison Evaluation ;) # # to answer the question "can it rebuild itself?" @@ -13,7 +19,7 @@ # and this also allows us to build a sytem, boot it and get a # list of files, build a full desktop environment, and only then # build and boot the "can it build itself" test system and get -# _its_ filelist. +# _its_ filelist. # # What this script aims to do: # ____________________________ @@ -34,7 +40,7 @@ # timestamp, binaries, at least those using shared libs or # which are shared objects, are copied and subjected to # --strip-debug. If files match at this stage, count them as -# 'accepted'. +# 'accepted'. # # As a last step for any file that doesn't match, copy it # through some perl regexps to "process" it (convert any @@ -70,19 +76,19 @@ # date/time/kernel-version formats. # # farce-identical - the names of the files which are identical -# +# # farce-substitutions - whenever using tokenizeanddiff results in a # difference being accepted, for both versions diff the before and # after versions to show what got changed. If the file is a binary, # the output may still be hard to read. Note that I _know_ glibc # version strings pass one of the regexps looking for a kernel version # - since I expect you to use the same version of glibc for each -# build, this is not a problem. +# build, this is not a problem. # # farce-differ - the names of the files which could not be treated # as matching (whether or not I regard the failure as predictable) # for possible input to ICA processing. -# +# # Copyright (C) 2005, 2006 Ken Moffat # # All rights reserved. @@ -103,6 +109,24 @@ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # +set -e + +: <&6 diff -a $F1 $F2 >&6 @@ -643,7 +667,7 @@ if [ $# -eq 4 ]; then fi if ! [ $ARGS == valid ]; then dohelp - fatal "`basename $0`: error in arguments" + fatal "`basename $0`: error in arguments" fi # ok, we're happy, lets hit these files