Make export-wiki.sh static across projects
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3412 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
679a4c04de
commit
72449f0635
|
@ -14,6 +14,7 @@ if SVN_CHECKOUT
|
|||
wiki.out/*:
|
||||
test -n "$(WGET)" -a -n "$(SED)" -a -n "$(TR)" -a -n "$(XSLTPROC)"
|
||||
WGET="$(WGET)" WGET_OPTS="$(WGET_OPTS)" SED="$(SED)" TR="$(TR)" XSLTPROC="$(XSLTPROC)" \
|
||||
PROJECT="@PACKAGE_NAME@" \
|
||||
$(SHELL) "$(srcdir)/export-wiki.sh" "$(srcdir)" "$(srcdir)/wiki.tmp"
|
||||
mv wiki.tmp wiki.out
|
||||
|
||||
|
|
|
@ -8,23 +8,23 @@ test -z "$WGET_OPTS" && WGET_OPTS="$WGET_OPTS"
|
|||
test -z "$SED" && SED="sed"
|
||||
test -z "$TR" && TR="tr"
|
||||
|
||||
test -z "$SERVER" && SERVER="http://www.opensc-project.org"
|
||||
test -z "$PROJECT" && PROJECT="opensc"
|
||||
|
||||
SRCDIR=.
|
||||
OUTDIR=.
|
||||
|
||||
test -n "$1" && SRCDIR="$1"
|
||||
test -n "$2" && OUTDIR="$2"
|
||||
|
||||
WIKI="$PROJECT/wiki"
|
||||
XSL="$SRCDIR/export-wiki.xsl"
|
||||
|
||||
test -f "$SRCDIR"/`basename $0`
|
||||
|
||||
test -e "$OUTDIR" && rm -fr "$OUTDIR"
|
||||
|
||||
mkdir "$OUTDIR" || exit 1
|
||||
|
||||
export SERVER="http://www.opensc-project.org"
|
||||
export PROJECT="opensc"
|
||||
export WIKI="$PROJECT/wiki"
|
||||
export XSL="$SRCDIR/export-wiki.xsl"
|
||||
|
||||
$WGET $WGET_OPTS $SERVER/$WIKI/TitleIndex -O "$OUTDIR"/TitleIndex.tmp
|
||||
|
||||
$SED -e "s#</li>#</li>\n#g" < "$OUTDIR"/TitleIndex.tmp \
|
||||
|
|
Loading…
Reference in New Issue