Added support for the Crux Linux distribution (with openjade).
This commit is contained in:
parent
9ce993206d
commit
519d4864ea
|
@ -12,13 +12,26 @@
|
||||||
## $LINUXDIST holds the name of the distribution
|
## $LINUXDIST holds the name of the distribution
|
||||||
## $JADETAG adds "/#html" to the stylesheet-specification in the Jade
|
## $JADETAG adds "/#html" to the stylesheet-specification in the Jade
|
||||||
## command line (see comments below), if necessary for that dist.
|
## command line (see comments below), if necessary for that dist.
|
||||||
|
|
||||||
|
LINUXDIST="Generic"
|
||||||
|
JADEPROG="jade"
|
||||||
|
JADETAG=
|
||||||
|
|
||||||
if [ -f /etc/debian_version ]; then
|
if [ -f /etc/debian_version ]; then
|
||||||
LINUXDIST="Debian"
|
LINUXDIST="Debian"
|
||||||
|
JADEPROG="jade"
|
||||||
JADETAG=\#html
|
JADETAG=\#html
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f /etc/redhat_release ]; then
|
if [ -f /etc/redhat_release ]; then
|
||||||
LINUXDIST="Redhat"
|
LINUXDIST="Redhat"
|
||||||
|
JADEPROG="jade"
|
||||||
|
JADETAG=
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -f /usr/bin/crux ]; then
|
||||||
|
LINUXDIST="Crux"
|
||||||
|
JADEPROG="openjade"
|
||||||
JADETAG=
|
JADETAG=
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -81,7 +94,7 @@ else
|
||||||
EXTRA_PATH=
|
EXTRA_PATH=
|
||||||
fi
|
fi
|
||||||
|
|
||||||
JADE_CMD="jade -t sgml -ihtml -d ${DB_STYLESHEET}${JADETAG} ${EXTRA_PATH}$1"
|
JADE_CMD="$JADEPROG -t sgml -ihtml -d ${DB_STYLESHEET}${JADETAG} ${EXTRA_PATH}$1"
|
||||||
echo "Invoking command '$JADE_CMD'"
|
echo "Invoking command '$JADE_CMD'"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue