bibtool/bibtool-use-system-regex.patch
Guido Berhoerster 68414f4132 - update to version 2.54
- command line parameter -V documented
  - resource key.make.alias added to create new @ALIAS records for
    any newly generated key
  - resource apply.alias added to expand the @ALIAS records
  - resource apply.include added to expand the @INCLUDE records
  - resource apply.modify added to expand the @MODIFY records
  - error message for -o without parameter added
  - fixed @ALIAS and @INCLUDE records not being printed
  - in tex.define spaces before the = are ignored instead of
    leading to unwanted definitions
  - the prepared makefiles for various operating systems missed an
    entry for crossref.[cho]
  - typo in help text and copyright year fixed
- do not make example scripts in order to prevent unwanted
  dependency-generation
- move examples to -doc subpackage and package the changelog
- removed obsolete bibtool-fix-libkpathsea-detection.patch and
  bibtool-honor-cflags.patch

OBS-URL: https://build.opensuse.org/package/show/Publishing/bibtool?expand=0&rev=3
2012-03-13 16:02:27 +00:00

51 lines
1.4 KiB
Diff

Index: BibTool/AutoConf/makefile.in
===================================================================
--- BibTool.orig/AutoConf/makefile.in
+++ BibTool/AutoConf/makefile.in
@@ -220,9 +220,9 @@ NON_ANSI_DEFS = @DEFS@
REGEX_DIR = regex-0.12
#
-REGEX_DEF = -DREGEX -I$(REGEX_DIR) -I..
+REGEX_DEF = -DREGEX
-REGEX = regex$(OBJ)
+REGEX =
# -------------------------------------------------------
# Kpathsea Library support.
@@ -477,8 +477,8 @@ $(OFILES): $(MAKEFILE)
# __________________________________________________________________
# Targets from the GNU Regular Expression Library.
-regex$(OBJ): $(REGEX_DIR)$(DIR_SEP)regex.c $(MAKEFILE)
- $(CC) $(C_FLAGS) -I$(REGEX_DIR) -I.. $(NON_ANSI_DEFS) $(REGEX_DIR)$(DIR_SEP)regex.c $(DONT_LINK) -o $@
+#regex$(OBJ): $(REGEX_DIR)$(DIR_SEP)regex.c $(MAKEFILE)
+# $(CC) $(C_FLAGS) -I$(REGEX_DIR) -I.. $(NON_ANSI_DEFS) $(REGEX_DIR)$(DIR_SEP)regex.c $(DONT_LINK) -o $@
bibtcl:
@@ -510,7 +510,7 @@ test check:
(cd Test; $(MAKE))
libbib.a: $(OLIBFILES)
- $(AR) $@ $(OLIBFILES) regex.o
+ $(AR) $@ $(OLIBFILES)
$(RANLIB) $@
depend:
Index: BibTool/rewrite.c
===================================================================
--- BibTool.orig/rewrite.c
+++ BibTool/rewrite.c
@@ -24,7 +24,8 @@
#include <bibtool/rewrite.h>
#ifdef REGEX
-#include <bibtool/regex.h>
+#define __USE_GNU
+#include <regex.h>
#endif
typedef struct rULE