Ensure help2man is writable

When not running as root, the shebang workaround requires write
permissions to modify help2man. Since the original file is read-only,
permission must be granted explicitly.

Also fix the double '/' in the /usr prefix while at it.
This commit is contained in:
Dor Askayo 2022-01-04 01:06:59 +02:00
parent d2b3feca5f
commit c3843e1960
1 changed files with 2 additions and 1 deletions

View File

@ -17,8 +17,9 @@ src_compile() {
make MAKEINFO=true
# fix a broken shebang
chmod +w help2man
tail -n +6 help2man > help2man.tmp
echo "#!/${PREFIX}/bin/perl" > help2man
echo "#!${PREFIX}/bin/perl" > help2man
cat help2man.tmp >> help2man
rm help2man.tmp
}