Skip to content
Snippets Groups Projects
Commit 755574ca authored by Fredrik Noring's avatar Fredrik Noring
Browse files

Nicer display of features.

Rev: bin/mkpackage.pike:1.9
parent 59791fa2
No related branches found
No related tags found
No related merge requests found
...@@ -74,8 +74,12 @@ class Package ...@@ -74,8 +74,12 @@ class Package
string setup_filename = unique_name('S')+".sh"; string setup_filename = unique_name('S')+".sh";
string unpack_directory = unique_name('D'); string unpack_directory = unique_name('D');
string features = Process.popen(pike_filename+" --features"); string features = Process.popen(pike_filename+" --features")||"-unknown-";
options[({ "--features" })] = "echo \""+(features || "")+"\"\nexit"; if(features[-1] == '\n')
// Remove final newline since echo will provide it.
features = features[..sizeof(features)-2];
options[({ "--features" })] =
(sizeof(features) ? "echo \""+features+"\"\n" : "") + "exit";
string setup = ("#!/bin/sh\n" string setup = ("#!/bin/sh\n"
"TARFILE=\"$1\"; shift; ARGS=''\n" "TARFILE=\"$1\"; shift; ARGS=''\n"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment