Ticket #36354: docbook-utils-newgrep.2.patch

File docbook-utils-newgrep.2.patch, 1.0 KB (added by lockhart (Thomas Lockhart), 12 years ago)

Patchfile from Fedora 18 RPM.

  • docbook-utils-0.6.

    diff -urNp docbook-utils-0.6.14-orig/bin/jw.in docbook-utils-0.6.14/bin/jw.in
    old new SGML_BASE_DIR="@prefix@/share/sgml" 
    8080SGML_CATALOGS_DIR="/etc/sgml"
    8181if [ -f "$SGML_CONF" ]
    8282then
    83   RE='^[:space:]*SGML_BASE_DIR[:space:]*=[:space:]*'
     83  RE='^[[:space:]]*SGML_BASE_DIR[[:space:]]*=[[:space:]]*'
    8484  SGML_BASE_DIR=`grep --color=never $RE $SGML_CONF | sed "s/$RE//"`
    85   RE='^[:space:]*SGML_CATALOGS_DIR[:space:]*=[:space:]*'
     85  RE='^[[:space:]]*SGML_CATALOGS_DIR[[:space:]]*=[[:space:]]*'
    8686  SGML_CATALOGS_DIR=`grep --color=never $RE $SGML_CONF | sed "s/$RE//"`
    8787fi
    8888
    case $SGML_STANDARD_CATALOGS in 
    312312          SGML_CATALOG_FILES=$SGML_CENTRALIZED_CATALOG
    313313        else
    314314          SGML_CATALOG_FILES=`find $SGML_BASE_DIR -name catalog`
    315           SGML_CATALOG_FILES=`echo "$SGML_CATALOG_FILES" | tr [:space:] :`
     315          SGML_CATALOG_FILES=`echo "$SGML_CATALOG_FILES" | tr [[:space:]] :`
    316316        fi
    317317        ;;
    318318  no)   SGML_CATALOG_FILES=""