2019-01-29 11:49:33 +00:00
|
|
|
#!/usr/bin/env bash
|
2004-02-01 20:03:26 +00:00
|
|
|
##
|
2023-10-06 23:15:32 +00:00
|
|
|
## Copyright (C) 2008-2023, Nigel Stewart <nigels[]nigels com>
|
2007-12-28 01:47:25 +00:00
|
|
|
## Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
|
|
|
|
## Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
|
2004-02-01 20:03:26 +00:00
|
|
|
##
|
|
|
|
## This program is distributed under the terms and conditions of the GNU
|
|
|
|
## General Public License Version 2 as published by the Free Software
|
|
|
|
## Foundation or, at your option, any later version.
|
|
|
|
##
|
|
|
|
## Parameters:
|
|
|
|
##
|
|
|
|
## $1: Extensions directory
|
|
|
|
## $2: Registry directory
|
|
|
|
## $3: The black list
|
2003-07-06 15:01:13 +00:00
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
if [ ! -d $1 ] ; then
|
2012-10-24 19:07:29 +00:00
|
|
|
mkdir -p $1
|
2004-01-04 14:20:17 +00:00
|
|
|
|
|
|
|
# Parse each of the extensions in the registry
|
2014-10-24 11:03:11 +00:00
|
|
|
find $2 -name doc -type d -prune -o -name "*.txt" -print | \
|
2003-07-06 15:01:13 +00:00
|
|
|
grep -v -f $3 | sort | bin/parse_spec.pl $1
|
2004-01-04 14:20:17 +00:00
|
|
|
|
2003-07-06 15:01:13 +00:00
|
|
|
fi
|