Skip to content

Commit

Permalink
TOOLS-607 I for one, welcome my new open source license
Browse files Browse the repository at this point in the history
  • Loading branch information
orlandov committed Aug 25, 2014
1 parent d0bcc22 commit 483b2dc
Show file tree
Hide file tree
Showing 26 changed files with 601 additions and 36 deletions.
392 changes: 373 additions & 19 deletions LICENSE

Large diffs are not rendered by default.

10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
#
# Copyright (c) 2012, Joyent, Inc. All rights reserved.
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#

#
# Copyright (c) 2014, Joyent, Inc.
#

#
# Makefile: basic Makefile for template API service
#
Expand Down
9 changes: 9 additions & 0 deletions bin/convertvm
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
#!/bin/bash
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#

#
# Copyright (c) 2014, Joyent, Inc.
#

DIR=$(cd `dirname $0`/..; pwd)

Expand Down
10 changes: 10 additions & 0 deletions bin/convertvm.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
#!/usr/bin/env node
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/

/*
* Copyright (c) 2014, Joyent, Inc.
*/

var CLI = require('../lib/cli');
var app = new CLI();
app.start();
10 changes: 10 additions & 0 deletions doc/design.md
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
<!--
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
-->

<!--
Copyright (c) 2014, Joyent, Inc.
-->

`
10 changes: 10 additions & 0 deletions lib/cli.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/

/*
* Copyright (c) 2014, Joyent, Inc.
*/

var DatasetManifest = require('./dataset_manifest');
var DiskImage = require('./disk_image');
var async = require('async');
Expand Down
10 changes: 10 additions & 0 deletions lib/common.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/

/*
* Copyright (c) 2014, Joyent, Inc.
*/

var crypto = require('crypto');
var fs = require('fs');
var path = require('path');
Expand Down
10 changes: 10 additions & 0 deletions lib/dataset_manifest.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/

/*
* Copyright (c) 2014, Joyent, Inc.
*/

var DatasetManifest = module.exports = function () {
var self = this;
var simpleKeys = [
Expand Down
10 changes: 10 additions & 0 deletions lib/disk_image.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/

/*
* Copyright (c) 2014, Joyent, Inc.
*/

var execFile = require('child_process').execFile;
var exec = require('child_process').exec;
var spawn = require('child_process').spawn;
Expand Down
10 changes: 10 additions & 0 deletions lib/formats/ovf.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/

/*
* Copyright (c) 2014, Joyent, Inc.
*/

var path = require('path');
var xml2js = require('xml2js');
var fs = require('fs');
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@
"lib": "lib",
"bin": "bin"
},
"bin": { "convertvm": "./bin/convertvm.js" }
"bin": {
"convertvm": "./bin/convertvm.js"
},
"license": "MPL-2.0"
}
11 changes: 9 additions & 2 deletions tools/bashstyle
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
#!/usr/bin/env node
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/

/*
* Copyright (c) 2014, Joyent, Inc.
*/

/*
* Copyright (c) 2012, Joyent, Inc. All rights reserved.
*
* bashstyle: check bash scripts for adherence to style guidelines, including:
*
* o no lines longer than 80 characters
Expand Down
9 changes: 9 additions & 0 deletions tools/license.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
#!/usr/bin/node
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/

/*
* Copyright (c) 2014, Joyent, Inc.
*/

var fs = require('fs');

Expand Down
10 changes: 9 additions & 1 deletion tools/mk/Makefile.defs
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# -*- mode: makefile -*-
#
# Copyright (c) 2012, Joyent, Inc. All rights reserved.
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#

#
# Copyright (c) 2014, Joyent, Inc.
#

#
# Makefile.defs: common defines.
#
Expand Down
10 changes: 9 additions & 1 deletion tools/mk/Makefile.deps
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# -*- mode: makefile -*-
#
# Copyright (c) 2012, Joyent, Inc. All rights reserved.
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#

#
# Copyright (c) 2014, Joyent, Inc.
#

#
# Makefile.deps: Makefile for including common tools as dependencies
#
Expand Down
10 changes: 9 additions & 1 deletion tools/mk/Makefile.node.defs
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# -*- mode: makefile -*-
#
# Copyright (c) 2012, Joyent, Inc. All rights reserved.
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#

#
# Copyright (c) 2014, Joyent, Inc.
#

#
# Makefile.node.defs: Makefile for building and bundling your own Node.js.
#
Expand Down
10 changes: 9 additions & 1 deletion tools/mk/Makefile.node.targ
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# -*- mode: makefile -*-
#
# Copyright (c) 2012, Joyent, Inc. All rights reserved.
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#

#
# Copyright (c) 2014, Joyent, Inc.
#

#
# Makefile.node.targ: See Makefile.node.defs.
#
Expand Down
10 changes: 9 additions & 1 deletion tools/mk/Makefile.node_deps.defs
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# -*- mode: makefile -*-
#
# Copyright (c) 2012, Joyent, Inc. All rights reserved.
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#

#
# Copyright (c) 2014, Joyent, Inc.
#

#
# Makefile.node_deps.defs: Makefile for including npm modules whose sources
# reside inside the repo. This should NOT be used for modules in the npm
Expand Down
10 changes: 9 additions & 1 deletion tools/mk/Makefile.node_deps.targ
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# -*- mode: makefile -*-
#
# Copyright (c) 2012, Joyent, Inc. All rights reserved.
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#

#
# Copyright (c) 2014, Joyent, Inc.
#

#
# Makefile.node_deps.targ: targets for Makefile.node_deps.defs.
#
Expand Down
10 changes: 9 additions & 1 deletion tools/mk/Makefile.node_prebuilt.defs
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# -*- mode: makefile -*-
#
# Copyright (c) 2012, Joyent, Inc. All rights reserved.
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#

#
# Copyright (c) 2014, Joyent, Inc.
#

#
# Makefile.node_prebuilt.defs: Makefile for including a prebuilt Node.js build.
#
Expand Down
10 changes: 9 additions & 1 deletion tools/mk/Makefile.node_prebuilt.targ
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# -*- mode: makefile -*-
#
# Copyright (c) 2012, Joyent, Inc. All rights reserved.
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#

#
# Copyright (c) 2014, Joyent, Inc.
#

#
# Makefile.node_prebuilt.targ: Makefile for including a prebuilt Node.js
# build.
Expand Down
10 changes: 9 additions & 1 deletion tools/mk/Makefile.smf.defs
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# -*- mode: makefile -*-
#
# Copyright (c) 2012, Joyent, Inc. All rights reserved.
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#

#
# Copyright (c) 2014, Joyent, Inc.
#

#
# Makefile.smf.defs: common targets for SMF manifests
#
Expand Down
10 changes: 9 additions & 1 deletion tools/mk/Makefile.smf.targ
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# -*- mode: makefile -*-
#
# Copyright (c) 2012, Joyent, Inc. All rights reserved.
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#

#
# Copyright (c) 2014, Joyent, Inc.
#

#
# Makefile.smf.targ: see Makefile.smf.defs.
#
Expand Down
10 changes: 9 additions & 1 deletion tools/mk/Makefile.targ
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# -*- mode: makefile -*-
#
# Copyright (c) 2012, Joyent, Inc. All rights reserved.
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#

#
# Copyright (c) 2014, Joyent, Inc.
#

#
# Makefile.targ: common targets.
#
Expand Down
10 changes: 9 additions & 1 deletion tools/mkrepo
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
#!/usr/bin/env node
// -*- mode: js -*-
// Copyright 2012 Joyent, Inc. All rights reserved.
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/

/*
* Copyright (c) 2014, Joyent, Inc.
*/

var child_process = require('child_process');
var fs = require('fs');
Expand Down
11 changes: 10 additions & 1 deletion tools/npmfreeze.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
#!/usr/bin/env node
// -*- mode: js -*-
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/

/*
* Copyright (c) 2014, Joyent, Inc.
*/

//
// Copyright (c) 2012, Joyent, Inc. All rights reserved.
//
// Generate a "dependencies" block for a top-level package.json that includes
// the explicit versions for all recursive npm modules. See "Method 3" in
Expand Down

0 comments on commit 483b2dc

Please sign in to comment.