patches/gcc/4.3.0/180-libiberty-pic.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Oct 27 19:34:13 2009 +0100 (2009-10-27)
changeset 1608 3d5aead9e15d
parent 746 b150d6f590fc
permissions -rw-r--r--
scripts: add sed expression to apply when renumbering patches

Some patchsets have superfluous members in their names (eg. the ones coming
from Gentoo), so it can come in handy to pass a sed RE to strip them out of
the final patch name.
Also add a 'fake' mode, where the command will only be printed and not
executed, so we can check beforehand if the rename will be OK.
     1 Original patch from gentoo: gentoo/src/patchsets/gcc/4.3.0/gentoo/51_all_gcc-3.4-libiberty-pic.patch
     2 diff -durN gcc-4.3.0.orig/libiberty/Makefile.in gcc-4.3.0/libiberty/Makefile.in
     3 --- gcc-4.3.0.orig/libiberty/Makefile.in	2007-07-25 08:26:45.000000000 +0200
     4 +++ gcc-4.3.0/libiberty/Makefile.in	2008-06-10 14:44:43.000000000 +0200
     5 @@ -225,6 +225,7 @@
     6  	  $(AR) $(AR_FLAGS) $(TARGETLIB) \
     7  	    $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS); \
     8  	  $(RANLIB) $(TARGETLIB); \
     9 +	  cp $(TARGETLIB) ../ ; \
    10  	  cd ..; \
    11  	else true; fi
    12