Diff

Differences From Artifact [daa9b2e9bc]:

To Artifact [f1a428a7f8]:


    40     40   	## Rename the "vfs" package directory to what "boot.tcl" expects
    41     41   	mv 'starpack.vfs/lib'/vfs* 'starpack.vfs/lib/vfs'
    42     42   
    43     43   	## Install "boot.tcl"
    44     44   	cp 'boot.tcl' 'starpack.vfs/'
    45     45   
    46     46   	# Intall VFS onto kit
    47         -	## Copy installed data for packages
    48         -	mkdir "installed-pkgs"
    49         -	cp -r "${OTHERPKGSDIR}"/*/inst/* 'installed-pkgs/'
           47  +	if echo 'exit 0' | tclkit >/dev/null 2>/dev/null; then
           48  +		## Install using existing Tclkit
           49  +		tclkit installvfs.tcl kit starpack.vfs
           50  +	else
           51  +		## Bootstrap
           52  +		### Copy installed data for packages
           53  +		mkdir "installed-pkgs"
           54  +		cp -r "${OTHERPKGSDIR}"/*/inst/* 'installed-pkgs/'
    50     55   
    51         -	## Call installer
    52         -	${TCLCONFIGDIR}/tclsh installvfs.tcl kit starpack.vfs
           56  +		### Call installer
           57  +		${TCLCONFIGDIR}/tclsh installvfs.tcl kit starpack.vfs
           58  +	fi
    53     59   
    54     60   ) || exit 1
    55     61   
    56     62   exit 0