-
Notifications
You must be signed in to change notification settings - Fork 127
/
showBuildInfo.js
46 lines (43 loc) · 2.63 KB
/
showBuildInfo.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*******************************************************************************
* Copyright 2015 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*******************************************************************************/
'use strict';
function showLegalWarning() {
console.log(new Date().toUTCString());
console.log('********************************************************************************');
console.log('You are installing the Node Application Metrics monitoring and profiling module.');
console.log('Licensed under the Apache License, Version 2.0 (the "License")');
console.log('you may not use this file except in compliance with the License.');
console.log('You may obtain a copy of the License at');
console.log('');
console.log('http://www.apache.org/licenses/LICENSE-2.0');
console.log('');
console.log('Unless required by applicable law or agreed to in writing, software');
console.log('distributed under the License is distributed on an "AS IS" BASIS,');
console.log('WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.');
console.log('See the License for the specific language governing permissions and');
console.log('limitations under the License.');
console.log('********************************************************************************');
};
function showBuildWarning() {
console.log('\n');
console.log('********************************************************************************');
// eslint-disable-next-line max-len
console.log('Appmetrics uses node-gyp to compile and build local binary libraries to enhance execution performance. If the following compilation and build logs contain errors, make sure you have the node-gyp pre-requisites installed \(https://github.com/nodejs/node-gyp#installation). If you have them and the build still had errors, see if there are any related issues at https://github.com/RuntimeTools/appmetrics/issues). If there aren\'t, feel free to open a new issue to report the bug.');
console.log('********************************************************************************');
console.log('\n');
};
showLegalWarning();
showBuildWarning();