if  [  "${BASHDOC_DOCDIR}"  ==  "y"  ];  then
    sedit  "s:DOCDIR=/usr/doc/sourcemage-docs:DOCDIR=${INSTALL_ROOT}/${BASHDOC_DOCS_DIR}:"  generate-smgl-docs.sh
else
    sedit  "s:DOCDIR=/usr/doc/sourcemage-docs:DOCDIR=${INSTALL_ROOT}/usr/share/doc/sourcemageapidocs:"  generate-smgl-docs.sh
fi &&

cp *.sh  "$INSTALL_ROOT"/usr/bin &&

if  [  "${RUN_BASHDOC}"  ==  "y"  ];  then
  generate-smgl-docs.sh
  bashdoc.sh -p BashDoc -o ${INSTALL_ROOT}/usr/share/doc/bashdoc `which bashdoc.sh`
fi
