Index: .travis.yml =================================================================== diff -u -N -rf4ca149d42922b918849d8e80b55e2b1850f5bfe -rfffcee32ce6d0ff4f781c8980abb73680ce619a8 --- .travis.yml (.../.travis.yml) (revision f4ca149d42922b918849d8e80b55e2b1850f5bfe) +++ .travis.yml (.../.travis.yml) (revision fffcee32ce6d0ff4f781c8980abb73680ce619a8) @@ -19,4 +19,4 @@ wget http://kitcreator.rkeene.org/kits/6967b89da1f6af7b12cdc82819f3bdb13a661242/tclkit; fi - chmod +x tclkit script: - - ./tclkit apps/build.tcl $HOME $TCLTAG \ No newline at end of file + - ./tclkit apps/build.tcl $HOME $TRAVIS_BUILD_DIR $TCLTAG \ No newline at end of file Index: apps/build.tcl =================================================================== diff -u -N -r79e5563d9dae4156e397aad5440a055b0d60347c -rfffcee32ce6d0ff4f781c8980abb73680ce619a8 --- apps/build.tcl (.../build.tcl) (revision 79e5563d9dae4156e397aad5440a055b0d60347c) +++ apps/build.tcl (.../build.tcl) (revision fffcee32ce6d0ff4f781c8980abb73680ce619a8) @@ -3,8 +3,9 @@ package require http package require tar +package require platform -proc ::build {HOMEDIR TCLTAG args} { +proc ::build {HOMEDIR BUILDDIR TCLTAG args} { set tarball "tcl.tar.gz" cd $HOMEDIR @@ -30,8 +31,14 @@ # exec tar -xzf tcl.tar.gz # https://stackoverflow.com/questions/22333745/how-does-tcl-exec-work-exactly + + set dir [expr {[string match "win*" [platform::generic]]?"win":"unix"}] - set tclDir [file normalize [file join tcl unix]] + set tclDir [file normalize [file join tcl $dir]] + + puts pwd([pwd])=[glob *] + puts tclDir($tclDir)=[glob $tclDir/*] + set buildDir [pwd] cd $tclDir @@ -40,7 +47,7 @@ set tclSh [file join $tclDir tclsh] - cd $::env(TRAVIS_BUILD_DIR) + cd $BUILDDIR exec >@stdout 2>@stderr [file join [pwd] configure] --with-tcl=$tclDir exec >@stdout 2>@stderr make test } Index: appveyor.yml =================================================================== diff -u -N -r2e1926a70b110b6e163b107d934bef9c299ae180 -rfffcee32ce6d0ff4f781c8980abb73680ce619a8 --- appveyor.yml (.../appveyor.yml) (revision 2e1926a70b110b6e163b107d934bef9c299ae180) +++ appveyor.yml (.../appveyor.yml) (revision fffcee32ce6d0ff4f781c8980abb73680ce619a8) @@ -20,5 +20,5 @@ - set Path=%CD%\%MINGW_DIR%\bin;%Path% build_script: - - tclkit.exe apps/build.tcl %CD% %TCLTAG% + - tclkit.exe apps/build.tcl %CD% %APPVEYOR_BUILD_FOLDER% %TCLTAG% \ No newline at end of file