patch_configure_ac.awk 207 B

123456789101112
  1. {
  2. if (version == "")
  3. version = $0;
  4. else if (substr($0,1,7) == "AC_INIT")
  5. {
  6. match($0,"\\[[0-9.]*\\]");
  7. print substr($0,1,RSTART) version substr($0,RSTART+RLENGTH-1);
  8. }
  9. else
  10. print;
  11. }