S
S
SkazochNik2011-07-23 18:18:45
linux
SkazochNik, 2011-07-23 18:18:45

Cross platform batch file/shell script

I want to implement several subjects, since both windows and linux programmers work in the project, and scripts must be universal (copying files, downloading from links, commits in svn and something like that, I would like to scatter comments in the script) .

I already tried to make update_lang_from_site.bat file like this:

#!/bin/sh

svn up
wget -t1 http://flylinkdc.googlecode.com/svn/trunk/compiled/Lang/uk-UA.xml --output-document=uk-UA.xml
svn commit -m"* [lang] auto commit from localization system..."


Thus on windows the first line will be strewed.

How to win? Not necessarily pretty.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2011-07-23
@SkazochNik

Don't specify an interpreter? This is optional, in principle, if not specified, the default one will work.

E
endymion, 2011-07-23
@endymion

Well, why are you going to invent another bicycle?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question