Skip to content

Commit

Permalink
Fixed CRLF issue for Node.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas C. Zakas committed Jun 26, 2011
1 parent 83ed025 commit ff17048
Show file tree
Hide file tree
Showing 15 changed files with 35 additions and 27 deletions.
8 changes: 6 additions & 2 deletions build.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<project name="csslint" default="all">

<!-- version number -->
<property name="csslint.version" value="0.3.0" />
<property name="csslint.version" value="0.3.1" />

<!-- the directories containing the source files -->
<property name="src.dir" value="./src" />
Expand Down Expand Up @@ -98,11 +98,15 @@
<mkdir dir="${build.npm.dir}/lib"/>
<copy file="${npm.dir}/package.json" todir="${build.npm.dir}"/>
<concat destfile="${build.npm.dir}/cli.js" fixlastline="true">
<header trimleading="yes">#!/usr/bin/env node</header>
<header trimleading="yes">#!/usr/bin/env node
/* Build time: ${RIGHT_NOW} */
</header>
<filelist dir="${src.dir}/cli" files="util.js,node.js" />
</concat>
<copy file="${build.dir}/${node.build.file}" todir="${build.npm.dir}/lib"/>

<!-- CRLF will cause Node version to break -->
<fixcrlf srcdir="${build.dir}" includes="**/*" eol="lf" />
</target>

<!-- build the tests into a single file -->
Expand Down
2 changes: 1 addition & 1 deletion build/csslint-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
/* Build time: 25-June-2011 07:20:29 */
/* Build time: 26-June-2011 10:55:08 */
/*!
Parser-Lib
Copyright (c) 2009-2011 Nicholas C. Zakas. All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion build/csslint-rhino.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
/* Build time: 25-June-2011 07:20:29 */
/* Build time: 26-June-2011 10:55:08 */
var CSSLint = (function(){
/*!
Parser-Lib
Expand Down
2 changes: 1 addition & 1 deletion build/csslint-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
/* Build time: 25-June-2011 07:20:29 */
/* Build time: 26-June-2011 10:55:08 */
/*!
Parser-Lib
Copyright (c) 2009-2011 Nicholas C. Zakas. All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion build/csslint.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
/* Build time: 25-June-2011 07:20:29 */
/* Build time: 26-June-2011 10:55:08 */
var CSSLint = (function(){
/*!
Parser-Lib
Expand Down
4 changes: 3 additions & 1 deletion build/npm/cli.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env node//print for rhino and nodejs
#!/usr/bin/env node
/* Build time: 26-June-2011 10:55:08 */
//print for rhino and nodejs
if(typeof print == "undefined") {
var print = console.log;
}
Expand Down
2 changes: 1 addition & 1 deletion build/npm/lib/csslint-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
/* Build time: 25-June-2011 07:20:29 */
/* Build time: 26-June-2011 10:55:08 */
/*!
Parser-Lib
Copyright (c) 2009-2011 Nicholas C. Zakas. All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion build/npm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@
"type":"git",
"url":"http://github.com/stubbornella/csslint.git"
}
}
}
6 changes: 3 additions & 3 deletions release/csslint-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
/* Build time: 25-June-2011 07:20:29 */
/* Build time: 26-June-2011 10:55:08 */
/*!
Parser-Lib
Copyright (c) 2009-2011 Nicholas C. Zakas. All rights reserved.
Expand Down Expand Up @@ -4756,7 +4756,7 @@ Tokens :Tokens
*/

var YUITest = {
version: "0.3.0"
version: "0.3.1"
};


Expand Down Expand Up @@ -9317,7 +9317,7 @@ var CSSLint = (function(){
var rules = [],
api = new parserlib.util.EventTarget();

api.version = "0.3.0";
api.version = "0.3.1";

//-------------------------------------------------------------------------
// Rule Management
Expand Down
6 changes: 3 additions & 3 deletions release/csslint-rhino.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
/* Build time: 25-June-2011 07:20:29 */
/* Build time: 26-June-2011 10:55:08 */
var CSSLint = (function(){
/*!
Parser-Lib
Expand Down Expand Up @@ -4757,7 +4757,7 @@ Tokens :Tokens
*/

var YUITest = {
version: "0.3.0"
version: "0.3.1"
};


Expand Down Expand Up @@ -9318,7 +9318,7 @@ var CSSLint = (function(){
var rules = [],
api = new parserlib.util.EventTarget();

api.version = "0.3.0";
api.version = "0.3.1";

//-------------------------------------------------------------------------
// Rule Management
Expand Down
6 changes: 3 additions & 3 deletions release/csslint-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
/* Build time: 25-June-2011 07:20:29 */
/* Build time: 26-June-2011 10:55:08 */
/*!
Parser-Lib
Copyright (c) 2009-2011 Nicholas C. Zakas. All rights reserved.
Expand Down Expand Up @@ -4756,7 +4756,7 @@ Tokens :Tokens
*/

var YUITest = {
version: "0.3.0"
version: "0.3.1"
};


Expand Down Expand Up @@ -9317,7 +9317,7 @@ var CSSLint = (function(){
var rules = [],
api = new parserlib.util.EventTarget();

api.version = "0.3.0";
api.version = "0.3.1";

//-------------------------------------------------------------------------
// Rule Management
Expand Down
6 changes: 3 additions & 3 deletions release/csslint.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
/* Build time: 25-June-2011 07:20:29 */
/* Build time: 26-June-2011 10:55:08 */
var CSSLint = (function(){
/*!
Parser-Lib
Expand Down Expand Up @@ -4757,7 +4757,7 @@ Tokens :Tokens
*/

var YUITest = {
version: "0.3.0"
version: "0.3.1"
};


Expand Down Expand Up @@ -9318,7 +9318,7 @@ var CSSLint = (function(){
var rules = [],
api = new parserlib.util.EventTarget();

api.version = "0.3.0";
api.version = "0.3.1";

//-------------------------------------------------------------------------
// Rule Management
Expand Down
4 changes: 3 additions & 1 deletion release/npm/cli.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env node//print for rhino and nodejs
#!/usr/bin/env node
/* Build time: 26-June-2011 10:55:08 */
//print for rhino and nodejs
if(typeof print == "undefined") {
var print = console.log;
}
Expand Down
6 changes: 3 additions & 3 deletions release/npm/lib/csslint-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
/* Build time: 25-June-2011 07:20:29 */
/* Build time: 26-June-2011 10:55:08 */
/*!
Parser-Lib
Copyright (c) 2009-2011 Nicholas C. Zakas. All rights reserved.
Expand Down Expand Up @@ -4756,7 +4756,7 @@ Tokens :Tokens
*/

var YUITest = {
version: "0.3.0"
version: "0.3.1"
};


Expand Down Expand Up @@ -9317,7 +9317,7 @@ var CSSLint = (function(){
var rules = [],
api = new parserlib.util.EventTarget();

api.version = "0.3.0";
api.version = "0.3.1";

//-------------------------------------------------------------------------
// Rule Management
Expand Down
4 changes: 2 additions & 2 deletions release/npm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "csslint",
"version": "0.3.0",
"version": "0.3.1",
"description": "CSSLint",
"author": "Nicholas C. Zakas",
"os": ["darwin", "linux"],
Expand All @@ -27,4 +27,4 @@
"type":"git",
"url":"http://github.com/stubbornella/csslint.git"
}
}
}

0 comments on commit ff17048

Please sign in to comment.