aboutsummaryrefslogtreecommitdiff
path: root/sbolint
diff options
context:
space:
mode:
Diffstat (limited to 'sbolint')
-rwxr-xr-xsbolint5
1 files changed, 5 insertions, 0 deletions
diff --git a/sbolint b/sbolint
index ae90327..247c9cb 100755
--- a/sbolint
+++ b/sbolint
@@ -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>/) {