Show warning about config file location.

If a user generates a configuration file that kdesrc-build won't pick up
by default, then show a message after the setup script runs warning them
about that and letting them know what they have to do.
wilder
Michael Pyne 15 years ago
parent ee439a1ffc
commit 8cda8fba89
  1. 14
      kdesrc-build-setup

@ -408,4 +408,18 @@ showInfo("Generated configuration has been written to $outputFileName");
# Say same thing in text mode just in case.
system('clear');
say "Generated configuration has been written to $outputFileName";
if ($outputFileName ne '~/.kdesrc-buildrc') {
say <<EOF;
Note that your configuration file in $outputFileName will
NOT BE USED unless you either:
1. Overwrite your ~/.kdesrc-buildrc with $outputFileName, or
2. Copy $outputFileName to be called 'kdesrc-buildrc' in some directory
and ALWAYS run kdesrc-build from the directory, or
3. ALWAYS pass the "--rc-file $outputFileName" option to kdesrc-build when you
run it.
EOF
}
exit 0;

Loading…
Cancel
Save