You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
673B

  1. #!/bin/bash
  2. ##
  3. ## Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
  4. ## Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
  5. ##
  6. ## This program is distributed under the terms and conditions of the GNU
  7. ## General Public License Version 2 as published by the Free Software
  8. ## Foundation or, at your option, any later version.
  9. ##
  10. ## Parameters:
  11. ##
  12. ## $1: Extensions directory
  13. ## $2: Registry directory
  14. ## $3: The black list
  15. set -e
  16. if [ ! -d $1 ] ; then
  17. mkdir -p $1
  18. # Parse each of the extensions in the registry
  19. find $2 -name doc -type d -prune -o -name "*.txt" -print | \
  20. grep -v -f $3 | sort | bin/parse_spec.pl $1
  21. fi