Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A364A200B65 for ; Wed, 17 Aug 2016 22:11:38 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A1EBB160A8C; Wed, 17 Aug 2016 20:11:38 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C0E9B160A6C for ; Wed, 17 Aug 2016 22:11:37 +0200 (CEST) Received: (qmail 18540 invoked by uid 500); 17 Aug 2016 20:11:36 -0000 Mailing-List: contact dev-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list dev@flex.apache.org Received: (qmail 18523 invoked by uid 99); 17 Aug 2016 20:11:36 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Aug 2016 20:11:36 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 15518C0C07 for ; Wed, 17 Aug 2016 20:11:36 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.43 X-Spam-Level: * X-Spam-Status: No, score=1.43 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, HTML_OBFUSCATE_05_10=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id jznCAw85QQnF for ; Wed, 17 Aug 2016 20:11:33 +0000 (UTC) Received: from mail-it0-f53.google.com (mail-it0-f53.google.com [209.85.214.53]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 5264C5F23C for ; Wed, 17 Aug 2016 20:11:33 +0000 (UTC) Received: by mail-it0-f53.google.com with SMTP id x131so9518769ite.0 for ; Wed, 17 Aug 2016 13:11:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to; bh=HNrhhT+b7GtJFxfe4OrI9p53SjlFWwPqEwXemTTzI5U=; b=b7Yc7xRsYN2O4Nvnc8YhKcU371B354MCF2qvHvqxoWXjszuXQynJMRD5HmLkkDdTIW EGpg+nKtVFn4okK5gwCeVxjyv/FQkusQS7fDk+RKO5xvO6nAXN8h6SW9wyNXJ5KE2j4K jnPf8fhcnQby6WfKPtitStj9pNlQC4f3OisRUONP6WH3dbgyi6aKEK8Qvm9gMrp7vOjk PZWYzB7GagPzfuk9A9Z2AD0r3/8T1O0hpGbfvPYJ5cGEaAR/Pn3YHoKyBVh6F+l02cZ5 lED51iBn6dkRvtgmlvWbKsQaZh+v4ZufjEb1OwoTBvT+DTlgJ+HdtWaBPX9kLERchuOZ b6wA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to; bh=HNrhhT+b7GtJFxfe4OrI9p53SjlFWwPqEwXemTTzI5U=; b=OtT0bZLxtXZnIP72dqyAfQbMR5G4Wj0vWloQJJL07cDBYwgwFDepqzWkJ4qw6EZ0rd +Wv0psUA+9RxJDNaRTdSc2Df0KjaVRmt37yjVaafZ2syyLJQagb24zbEPO7dj4umV+c0 ANy09nnxVZXRG57FJNn7eReEc0OaR8RNOYo4T1/fkjaRS7SjHuKDQvM7JWF/HKbLFGZ7 sF1DlTpFb8X6opfR9Pq6iJa6Vu9VQn4L90CrzvkE5n8o6FFGNx/9SZRawlh3Q2I2m8CG XGruB8AXk93IICF7UwJkMDBhjUa9c/vwLvvx2vWy4/SwwIZpzsvj6M5CEgXSdfM5RnGC SKDg== X-Gm-Message-State: AEkoouuSWLwUcnYXDKq+TFtJdpY6IGDZa3L464S8Z4ehsehNKsqIgZfyePnG5RTsosljQSOrAN+HxOabU13AgQ== X-Received: by 10.36.120.150 with SMTP id p144mr29239108itc.44.1471464686653; Wed, 17 Aug 2016 13:11:26 -0700 (PDT) MIME-Version: 1.0 Sender: omuppi1@gmail.com Received: by 10.79.94.65 with HTTP; Wed, 17 Aug 2016 13:10:56 -0700 (PDT) In-Reply-To: References: From: OmPrakash Muppirala Date: Wed, 17 Aug 2016 13:10:56 -0700 X-Google-Sender-Auth: LepHkBkD4SzRL1IBtrP7zTj0AaQ Message-ID: Subject: Re: git commit: [flex-utilities] [refs/heads/develop] - npm-flexjs: changes line ending of scripts to LF because CRLF does not work on Mac, causing bad interpreter: No such file or directory error To: "dev@flex.apache.org" Content-Type: multipart/alternative; boundary=001a114a9fe4f29661053a4a1110 archived-at: Wed, 17 Aug 2016 20:11:38 -0000 --001a114a9fe4f29661053a4a1110 Content-Type: text/plain; charset=UTF-8 No, it does not work on cmd or powershell. If I remember correctly, this only worked on Cygwin for me. I was hoping to add cmd/powershell support at a later point. On Wed, Aug 17, 2016 at 12:39 PM, OmPrakash Muppirala wrote: > On Wed, Aug 17, 2016 at 12:37 PM, Josh Tynjala > wrote: > >> So these scripts work correctly in PowerShell and cmd? >> >> > > > >> - Josh >> >> On Wed, Aug 17, 2016 at 12:28 PM, OmPrakash Muppirala < >> bigosmallm@gmail.com> >> wrote: >> >> > I don't think we will be adding bat files here. The idea is to be able >> to >> > run the same file on either platform so that they can be integrated into >> > other flows. At least, that is the current thinking. >> > >> > Thanks, >> > Om >> > >> > On Wed, Aug 17, 2016 at 12:21 PM, Josh Tynjala >> > wrote: >> > >> > > I assume that we plan to add .bat files for Windows at some point, and >> > > those probably need CRLF. We could check the file extension. Either >> skip >> > > .bat files or only fix files without an extension. I'm not sure which >> is >> > > better. >> > > >> > > - Josh >> > > >> > > On Wed, Aug 17, 2016 at 12:01 PM, OmPrakash Muppirala < >> > > bigosmallm@gmail.com> >> > > wrote: >> > > >> > > > On Wed, Aug 17, 2016 at 10:28 AM, wrote: >> > > > >> > > > > Repository: flex-utilities >> > > > > Updated Branches: >> > > > > refs/heads/develop e5c3d36e0 -> 59664053c >> > > > > >> > > > > >> > > > > npm-flexjs: changes line ending of scripts to LF because CRLF does >> > not >> > > > > work on Mac, causing bad interpreter: No such file or directory >> error >> > > > > >> > > > > >> > > > > Project: http://git-wip-us.apache.org/r >> epos/asf/flex-utilities/repo >> > > > > Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/ >> > > > > commit/59664053 >> > > > > Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/ >> > > > 59664053 >> > > > > Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/ >> > > > 59664053 >> > > > > >> > > > > Branch: refs/heads/develop >> > > > > Commit: 59664053cea8436c2d4a6f0b7df10c619f040826 >> > > > > Parents: e5c3d36 >> > > > > Author: Josh Tynjala >> > > > > Authored: Wed Aug 17 10:28:19 2016 -0700 >> > > > > Committer: Josh Tynjala >> > > > > Committed: Wed Aug 17 10:28:19 2016 -0700 >> > > > > >> > > > > ------------------------------------------------------------ >> > ---------- >> > > > > .../dependencies/download_dependencies.js | 29 >> > > > ++++++++++++++++++++ >> > > > > npm-flexjs/package.json | 1 + >> > > > > 2 files changed, 30 insertions(+) >> > > > > ------------------------------------------------------------ >> > ---------- >> > > > > >> > > > > >> > > > > http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/ >> > > > > 59664053/npm-flexjs/dependencies/download_dependencies.js >> > > > > ------------------------------------------------------------ >> > ---------- >> > > > > diff --git a/npm-flexjs/dependencies/download_dependencies.js >> > > > > b/npm-flexjs/dependencies/download_dependencies.js >> > > > > index e8fa370..3858049 100644 >> > > > > --- a/npm-flexjs/dependencies/download_dependencies.js >> > > > > +++ b/npm-flexjs/dependencies/download_dependencies.js >> > > > > @@ -21,6 +21,7 @@ >> > > > > >> > > > > var fs = require('fs'); >> > > > > var mkdirp = require('mkdirp'); >> > > > > +var eol = require('eol'); >> > > > > var constants = require('./Constants'); >> > > > > var adobeair = require('./AdobeAIR'); >> > > > > var flashplayerglobal = require('./FlashPlayerGlobal'); >> > > > > @@ -30,6 +31,7 @@ var swfObject = require('./SWFObject'); >> > > > > var flatUI = require('./FlatUI'); >> > > > > >> > > > > var installSteps = [ >> > > > > + updateScriptEOL, >> > > > > createDownloadsDirectory, >> > > > > installFlatUI, >> > > > > installFlashPlayerGlobal, >> > > > > @@ -45,6 +47,33 @@ function start() >> > > > > installSteps[0].call(); >> > > > > } >> > > > > >> > > > > +function updateScriptEOL() >> > > > > +{ >> > > > > + try >> > > > > + { >> > > > > + var files = >> > > > > + [ >> > > > > + 'js/bin/asjscnpm', >> > > > > + 'js/bin/asjscompcnpm', >> > > > > + 'js/bin/mxmlcnpm' >> > > > > + ]; >> > > > > >> > > > >> > > > Since we are running this first, can we safely assume that all the >> > files >> > > > that are under js/bin need to be fixed? That way, any new files >> added >> > > > later will not require a code change here. >> > > > >> > > > Thanks, >> > > > Om >> > > > >> > > > >> > > > >> > > > > + do >> > > > > + { >> > > > > + var file = files.shift(); >> > > > > + var data = fs.readFileSync(file, {encoding: 'utf8'}); >> > > > > + data = eol.lf(data); >> > > > > + fs.writeFileSync(file, data, {encoding: 'utf8', mode: >> > > > 0o755}); >> > > > > + } >> > > > > + while(files.length > 0) >> > > > > + } >> > > > > + catch(e) >> > > > > + { >> > > > > + handleAbort(); >> > > > > + return; >> > > > > + } >> > > > > + handleInstallStepComplete(); >> > > > > +} >> > > > > + >> > > > > function createDownloadsDirectory() >> > > > > { >> > > > > //Create downloads directory if it does not exist already >> > > > > >> > > > > http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/ >> > > > > 59664053/npm-flexjs/package.json >> > > > > ------------------------------------------------------------ >> > ---------- >> > > > > diff --git a/npm-flexjs/package.json b/npm-flexjs/package.json >> > > > > index 6181aea..0fd08b3 100644 >> > > > > --- a/npm-flexjs/package.json >> > > > > +++ b/npm-flexjs/package.json >> > > > > @@ -16,6 +16,7 @@ >> > > > > "author": "OmPrakash Muppirala ", >> > > > > "license": "Apache-2.0", >> > > > > "dependencies": { >> > > > > + "eol": "^0.2.0", >> > > > > "fs-extra": "^0.26.3", >> > > > > "merge-dirs": "^0.2.1", >> > > > > "mkdirp": "^0.5.1", >> > > > > >> > > > > >> > > > >> > > >> > >> > > --001a114a9fe4f29661053a4a1110--