cvs commit: ALFS/docs/syntax_doc/stylesheets entResolver goTidy

jwrober at linuxfromscratch.org jwrober at linuxfromscratch.org
Sat Mar 13 19:28:27 PST 2004


jwrober     04/03/13 20:28:27

  Added:       docs/syntax_doc/stylesheets entResolver goTidy
  Log:
  new files to support Makefile
  
  Revision  Changes    Path
  1.1                  ALFS/docs/syntax_doc/stylesheets/entResolver
  
  Index: entResolver
  ===================================================================
  #!/bin/bash
  ###############################################################################
  #                                                                             #
  # File:        entResolver                                                    #
  #                                                                             #
  # Description: Works around libxml2 bug 135713 by preprocessing entity        #
  #              references before performing any stylesheet processing.        #
  #                                                                             #
  # Author:      Manuel Canales Esparcia                                        #
  #                                                                             #
  ###############################################################################
  
  NAME=`basename "$0"`
  DESTDIR="$1"
  
  cd $DESTDIR
  
  if [ -z "$1" ]; then
          echo "USAGE: $NAME destdir"
          exit
  fi
  
  for i in `find . -name "*.xml"`; do
          xmllint --nonet --noent "${i}" > "${i}";
  done
  
  
  
  
  1.1                  ALFS/docs/syntax_doc/stylesheets/goTidy
  
  Index: goTidy
  ===================================================================
  #!/bin/bash
  ###############################################################################
  #
  # File:        goTidy
  #
  # Description: Tidy is best used inside a loop, but Makefiles don't do Bash
  # loops well.  This file alleviates that problem.
  #
  # Author:      James Robertson
  #
  ###############################################################################
  
  NAME=`basename "$0"`
  DESTDIR="$1"
  
  cd $DESTDIR
  
  if [ -z "$1" ]; then
          echo "USAGE: $NAME destdir"
          exit
  fi
  
  for file in `find ./ -name "*.html"`; do 
  	tidy -config tidy.conf $file 2>/dev/null; 
  done
  
  
  



More information about the alfs-log mailing list