20 if {[
catch {
package require cmdline} ERROR]} {
21 puts "$ERROR\n If you are running this script on tclsh, you can fix this by installing 'tcllib'"
27 set usage "USAGE: $::argv0 <project>"
31 set Name LaunchCheckSyntax
32 set hog_path [
file normalize "[
file dirname [
info script]]/.."]
37 if {[
catch {
array set options [
cmdline::getoptions ::argv $parameters $usage]}] || $::argc eq 0 } {
42 set project [
lindex $argv 0]
43 set main_folder [
file normalize "$repo_path/Projects/$project/$project.runs/"]
46 Msg Info "Opening project $project..."
48 open_project ../../Projects/$project/$project.xpr
51 Msg Info "Checkin syntax for project $project..."
52 set syntax [check_syntax -return_string]
54 if {[
string first "CRITICAL" $syntax] != -1} {