diff options
Diffstat (limited to 'sbolint')
-rwxr-xr-x | sbolint | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1147,6 +1147,9 @@ sub check_script { if(/^\s*[^#]/ && !defined($codestart)) { $codestart = $lineno; + if(not /^cd\s+"?\$\(\s*dirname\s+"?\$0.*CWD=.*pwd/) { + log_error("$file:$lineno: first line of code must be 'cd \$(dirname \$0) ; CWD=\$(pwd)'"); + } } if(/^###sbolint\s*(\S+)/) { @@ -1218,6 +1221,8 @@ sub check_script { log_error("$file:$lineno: makepkg called twice (here and line $makepkg"); } $makepkg = $lineno; + } elsif(/^\s*?CWD=/) { + log_error("$file:$lineno: lone CWD= assignment not valid in 15.0 template"); } if(/^[^#]*<documentation>/) { |