Skip to content

Commit

Permalink
version subcommand had disappeared
Browse files Browse the repository at this point in the history
  • Loading branch information
Emmanuel Frécon committed Aug 27, 2015
1 parent 115664e commit 0c7a548
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/api/cli.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ namespace eval ::api::cli {
server "Start a web server to respond to REST calls"
ps "List all existing containers in cluster or specific machines"
ls "List all machines in the cluster and their state"
version "Print out current version number"
}

variable appname ""; # Name of main application.
Expand Down
8 changes: 6 additions & 2 deletions make/make.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ set dstdir [file join $dirname distro]

lappend auto_path [file join $dirname .. lib]
package require cluster; # So we can call Run...
cluster defaults -verbose INFO

# Build for all platforms
if { [llength $argv] == 0 } {
Expand Down Expand Up @@ -75,7 +76,9 @@ set sdx [file join $kitdir sdx.kit]
::cluster::Run2 $tclkit $sdx qwrap ../machinery
::cluster::Run2 $tclkit $sdx unwrap machinery.kit
foreach fname [glob -directory [file join $dirname .. lib] -nocomplain -- *] {
file copy -force -- $fname machinery.vfs/lib
set r_fname [file dirname [file normalize ${fname}/___]]
cluster log DEBUG "Copying $r_fname -> machinery.vfs/lib"
file copy -force -- $r_fname machinery.vfs/lib
}

# Install the modules of tcllib into the lib directory of the VFS
Expand Down Expand Up @@ -106,9 +109,10 @@ foreach platform $argv {
::cluster::Run2 $tclkit $sdx wrap machinery.kit
# Copy runtime to temporary because won't work if same as the
# one we are starting from.
cluster log DEBUG "Creating temporary kit for final wrapping: ${binkit}.temp"
file copy $binkit ${binkit}.temp
::cluster::Run2 $tclkit $sdx wrap machinery -runtime ${binkit}.temp
file delete ${binkit}.temp
file delete -force -- ${binkit}.temp
} else {
cluster log ERROR "Cannot build for $platform, no main kit available"
}
Expand Down

0 comments on commit 0c7a548

Please sign in to comment.