Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Adding a helper install script to Odie's autosetup |
|---|---|
| Timelines: | family | ancestors | descendants | both | autosetup |
| Files: | files | file ages | folders |
| SHA1: |
571ce26bd6dff4d757e9e43f48bdc56e |
| User & Date: | hypnotoad 2015-03-30 18:19:47 |
Context
|
2015-03-30
| ||
| 18:50 | Added a scripts directory to distribute helper scripts for Makefiles check-in: 47ed8c915e user: hypnotoad tags: autosetup | |
| 18:19 | Adding a helper install script to Odie's autosetup check-in: 571ce26bd6 user: hypnotoad tags: autosetup | |
|
2015-03-27
| ||
| 19:03 | Fixed where sherpa_bootstrap installs sherpa packages check-in: 223625274c user: hypnotoad tags: autosetup | |
Changes
Added autosetup/lib/install-script.tcl.
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
#
# @synopsis Helper script for Makefiles
#
proc use args {}
set here [file dirname [file normalize [info script]]]
source $here/fileutil.tcl
proc file-normalize args {
return [file normalize {*}$args]
}
proc _istcl name {
return [string match *.tcl $name]
}
###
# topic: ea4ac0a84ae990dafee965b995f48e63
###
proc _istm name {
return [string match *.tm $name]
}
proc _isdirectory name {
return [file isdirectory $name]
}
foreach {src dest} $argv {
set src [file normalize $src]
set dest [file normalize $dest]
file mkdir $dest
foreach {file} [fileutil_find $src _istcl] {
set relname [fileutil_relative $src $file]
set destfile [file join $dest $relname]
file mkdir [file dirname $destfile]
file copy -force $file [file join $dest $relname]
}
}
|