This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
#look for files that contain pattern "patch" after a dot for i in `ls $SRCDIR/patches/$patchdir/*.*patch*` do #make sure it's a regular file and not a directory or anything else if test -f $i then success=no echo "Trying patch file: $i" for pnum in 0 1 2 3 4 5 do #trying each number up to 5 patch -p$pnum -f --dry-run < $i > /dev/null if test $? -eq 0 then patch -p$pnum -f < $i success=yes break fi done if test x$success = xno then echo "Patch failed: $i" fi fi done
------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |