mirror of
https://github.com/openappsec/openappsec.git
synced 2025-09-29 11:16:30 +03:00
First release of open-appsec source code
This commit is contained in:
17
build_system/tools/packaging/makeself_wrapper.sh
Executable file
17
build_system/tools/packaging/makeself_wrapper.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
export param="$2"
|
||||
export label="$5"
|
||||
export version="$7"
|
||||
export script="$8"
|
||||
|
||||
echo $6 | sed 's/ARGPACKINGMAGIC/\n/g' | awk -v cmd=$1 -v dir=$3 -v artifact=$4 '
|
||||
{
|
||||
offset = index($0,"ARGSPACEMAGIC");
|
||||
space="";
|
||||
while(offset + length(space) < 40) space = space " ";
|
||||
gsub(/ARGSPACEMAGIC/,space,$0);
|
||||
if(length($0)) help = help "\\n" $0
|
||||
}
|
||||
END {
|
||||
gsub(/\\ /, " ", help);
|
||||
system(cmd" -q "ENVIRON["param"]" "dir" "artifact " \"" ENVIRON["label"] "\" \"" help "\" \"" ENVIRON["version"] "\" " ENVIRON["script"]);
|
||||
}'
|
Reference in New Issue
Block a user