Changeset 51377


Ignore:
Timestamp:
May 23, 2009, 6:44:07 PM (11 years ago)
Author:
raimue@…
Message:

base:
Replace pkg_mkindex.tcl with a shell script which greps for errors. The Tcl
builtin proc pkg_mkIndex does not offer any way to detect them.

Such errors occur on syntax errors in Tcl files. Therefore these files would
not be added to the index. Later execution would fail with error messages which
do not necessarily indicate the problem.

Location:
trunk/base
Files:
1 added
1 deleted
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/Mk/macports.tea.mk

    r47700 r51377  
    2222        $(INSTALL) -d -o ${DSTUSR} -g ${DSTGRP} -m ${DSTMODE} ${INSTALLDIR}
    2323        $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 ${SHLIB_NAME} ${INSTALLDIR}
    24         $(SILENT) $(TCLSH) ../pkg_mkindex.tcl ${INSTALLDIR}
     24        $(SILENT) ../pkg_mkindex.sh ${INSTALLDIR}
  • trunk/base/configure

    r51285 r51377  
    1053010530
    1053110531# Output
    10532 ac_config_files="$ac_config_files Doxyfile Makefile Mk/macports.autoconf.mk doc/prefix.mtree doc/macosx.mtree doc/macports.conf portmgr/freebsd/Makefile portmgr/fedora/macports.spec src/Makefile src/macports1.0/macports_autoconf.tcl src/port1.0/port_autoconf.tcl src/registry1.0/registry_autoconf.tcl src/programs/Makefile src/macports1.0/macports_fastload.tcl setupenv.bash"
     10532ac_config_files="$ac_config_files Doxyfile Makefile Mk/macports.autoconf.mk doc/prefix.mtree doc/macosx.mtree doc/macports.conf portmgr/freebsd/Makefile portmgr/fedora/macports.spec src/Makefile src/macports1.0/macports_autoconf.tcl src/port1.0/port_autoconf.tcl src/registry1.0/registry_autoconf.tcl src/programs/Makefile src/macports1.0/macports_fastload.tcl src/pkg_mkindex.sh setupenv.bash"
    1053310533
    1053410534
     
    1114311143    "src/programs/Makefile") CONFIG_FILES="$CONFIG_FILES src/programs/Makefile" ;;
    1114411144    "src/macports1.0/macports_fastload.tcl") CONFIG_FILES="$CONFIG_FILES src/macports1.0/macports_fastload.tcl" ;;
     11145    "src/pkg_mkindex.sh") CONFIG_FILES="$CONFIG_FILES src/pkg_mkindex.sh" ;;
    1114511146    "setupenv.bash") CONFIG_FILES="$CONFIG_FILES setupenv.bash" ;;
    1114611147
  • trunk/base/configure.ac

    r51285 r51377  
    378378        src/programs/Makefile
    379379        src/macports1.0/macports_fastload.tcl
     380        src/pkg_mkindex.sh
    380381        setupenv.bash
    381382])
  • trunk/base/src/macports1.0/Makefile

    r49029 r51377  
    2525        echo "${TCL_PACKAGE_DIR}" > ${DESTDIR}${prefix}/var/macports/.tclpackage
    2626
    27         $(SILENT) $(TCLSH) ../pkg_mkindex.tcl ${INSTALLDIR}
     27        $(SILENT) ../pkg_mkindex.sh ${INSTALLDIR}
  • trunk/base/src/package1.0/Makefile

    r43959 r51377  
    1919                $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 $$file ${INSTALLDIR}; \
    2020        done
    21         $(SILENT) $(TCLSH) ../pkg_mkindex.tcl ${INSTALLDIR}
     21        $(SILENT) ../pkg_mkindex.sh ${INSTALLDIR}
  • trunk/base/src/port1.0/Makefile

    r42662 r51377  
    2626                $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 $$file ${INSTALLDIR}; \
    2727        done
    28         $(SILENT) $(TCLSH) ../pkg_mkindex.tcl ${INSTALLDIR}
     28        $(SILENT) ../pkg_mkindex.sh ${INSTALLDIR}
    2929
    3030test::
  • trunk/base/src/registry1.0/Makefile

    r26177 r51377  
    1717                $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 $$file ${INSTALLDIR}; \
    1818        done
    19         $(SILENT) $(TCLSH) ../pkg_mkindex.tcl ${INSTALLDIR}
     19        $(SILENT) ../pkg_mkindex.sh ${INSTALLDIR}
    2020
    2121test::
  • trunk/base/src/registry2.0/Makefile

    r40056 r51377  
    2626                $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 $$file ${INSTALLDIR}/$$file; \
    2727        done
    28         $(SILENT) $(TCLSH) ../pkg_mkindex.tcl ${INSTALLDIR}
     28        $(SILENT) ../pkg_mkindex.sh ${INSTALLDIR}
Note: See TracChangeset for help on using the changeset viewer.