[eggheads-patches] PATCH: mkfile.patch

Peter 'Rattacresh' Backes rtc at rhrk.uni-kl.de
Fri Oct 8 19:50:18 CST 1999


Use sed and make the auto-version thing in makefile working...


-- Peter 'Rattacresh' Backes, rtc at rhrk.uni-kl.de

-------------- next part --------------
diff -urN eggdrop1.3.29/Makefile.in eggdrop1.3.29+mkfile/Makefile.in
--- eggdrop1.3.29/Makefile.in	Fri Oct  8 17:02:59 1999
+++ eggdrop1.3.29+mkfile/Makefile.in	Fri Oct  8 17:03:32 1999
@@ -5,7 +5,7 @@
 
 prefix = @prefix@
 DEST=@DEST@
-NEWVERSION=`grep 'char egg_version' src/main.c | awk '{gsub(/\"|\;/, "", $4); print $4}'`
+NEWVERSION=`grep 'char egg_version' src/main.c | sed -e 's/^char egg_version.*= "//' -e 's/";.*//'`
 
 SHELL=/bin/sh
 


More information about the Patches mailing list