@@ -271,10 +271,14 @@ # Create pkgIndex files if needed if [ -z "${tclpkg}" ]; then tclpkg="${pkg}" fi + echo "${tclpkg}" > "${installdir}/tcl-pkg-name" + if [ -n "${tclpkg_initfunc}" ]; then + echo "${tclpkg_initfunc}" > "${installdir}/tcl-init-func" + fi if [ -z "${tclpkgversion}" ]; then tclpkgversion="${version}" fi