Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][tlug] Javascript include order vs cat (Was: grep, sed, and cat - oh my!)
- Date: Fri, 17 Sep 2010 11:44:05 +0900
- From: Dave M G <dave@example.com>
- Subject: [tlug] Javascript include order vs cat (Was: grep, sed, and cat - oh my!)
- References: <4C924ACE.9000707@example.com> <20100916170709.GI2124@example.com> <20100916215027.GA23445@example.com> <4C92CF23.60902@example.com>
- User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.12) Gecko/20100826 Thunderbird/3.0.7
TLUG, Whoops... slight problem.When I cat the Javascript files together, the resulting mega-Javascript doesn't seem to work.The errors I get from Firebug indicate that the order in which the code is written is messed up so that it's trying to use variables and functions before they're declared. The order in which I include the Javascript files in the HTML is not being preserved (... and, of course, now that I think about it, why would it?)Damn. I hadn't thought of that problem.I guess one way I could solve the problem is explicitly name each Javascript file and cat them one by one, in order.Instead of writing out a cat command for each individual file to be included, though, is it possible to reference a text file where I can list the files in the order I want them to be cat-ed in?This is one area where Google is failing because the search terms collapse on themselves - "cat command text file list", for example, results in things to do with combining two text files with lists in them, not files with lists that are used for the cat command itself.Any advice would be much appreciated (even if it was recommendations for better search terms!).-- Dave M G
- Follow-Ups:
- Re: [tlug] Javascript include order vs cat (Was: grep, sed, and cat - oh my!)
- From: John Mettraux
- [tlug] Javascript include order vs cat (Was: grep, sed, and cat - oh my!)
- From: Stephen J. Turnbull
- References:
- [tlug] grep, sed, and cat - oh my!
- From: Dave M G
- Re: [tlug] grep, sed, and cat - oh my!
- From: Nicolas Limare
- Re: [tlug] grep, sed, and cat - oh my!
- From: Mattia Dongili
- Re: [tlug] grep, sed, and cat - oh my! [SOLVED]
- From: Dave M G
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] grep, sed, and cat - oh my! [SOLVED]
- Next by Date: Re: [tlug] Javascript include order vs cat (Was: grep, sed, and cat - oh my!)
- Previous by thread: Re: [tlug] grep, sed, and cat - oh my! [SOLVED]
- Next by thread: Re: [tlug] Javascript include order vs cat (Was: grep, sed, and cat - oh my!)
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links