internal/rosa/perl: Makefile.PL helper

This can be invoked from azalea.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-05-19 03:24:27 +09:00
parent a7877844bf
commit 8092492018
4 changed files with 53 additions and 18 deletions

View File

@@ -523,7 +523,7 @@ cd '/usr/src/` + name + `/'
scriptEarly += "\nmkdir -p " + dir
}
scriptEarly += "\ncd " + dir + "\n"
} else if !attr.EnterSource && attr.ScriptEarly == "" {
} else if !attr.EnterSource && attr.ScriptEarly == "" && dir != "" {
panic("cannot remain in root")
}