1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-19 21:57:59 +01:00

Slight modification to make_jar.sh.

This commit is contained in:
Kris Maglione
2015-03-15 16:20:49 -07:00
parent 1bcc5502e7
commit aca9da828c

View File

@@ -37,7 +37,8 @@ then
} }
fi fi
mungeliterals=$(cat <<'!' mungeliterals_() {
cat <<'!'
local $/; local $/;
$_ = <>; $_ = <>;
s{(?<!function )\bliteral\((?:function \(\) )?/\*(.*?)\*/\$?\)}{ s{(?<!function )\bliteral\((?:function \(\) )?/\*(.*?)\*/\$?\)}{
@@ -48,11 +49,11 @@ mungeliterals=$(cat <<'!'
}ges; }ges;
print; print;
! !
) }
mungeliterals() { mungeliterals() {
if which perl >/dev/null 2>&1 if which perl >/dev/null 2>&1
then perl -e "$mungeliterals" then perl -e "$(mungeliterals_)"
else cat else cat
fi fi
} }