delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/08/19/16:32:55

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-3.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_QL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <loom.20120819T202932-528@post.gmane.org>
References: <loom DOT 20120819T202932-528 AT post DOT gmane DOT org>
Date: Sun, 19 Aug 2012 15:32:22 -0500
Message-ID: <CANLSjUupNDfSZf=nqxii6YP_Z0jUbjBjRcBZ0JSiYmR90TBzQA@mail.gmail.com>
Subject: Re: Need help creating a script that is ran from a batch file.
From: Paul Thompson <patjahsd AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

The cygwin and unix world is a "help yourself" world. You must do some
work. No one is here to do it for you.

What I did in your position was to look for a bash script, and copy
it. Then you modify it. When you get stuck, use google to look for
help. I have just written a number perl programs knowing nothing about
perl, just use google to search for help. There's a lot of stuff out
there.

Using this basic approach, I have learned how to write bash scripts,
do perl, etc etc. You start, and ask for help when you get stuck.

On Sun, Aug 19, 2012 at 1:54 PM, Michael Steele <michaels AT go2dds DOT com> wrote:
> I know very little about creating a script under cygwin. I have a particular
> tack that doesn't change and I'm running it manually. I'm thinking that since
> it doesn't change that it could be automated. As you can see below I'm
> compiling three programs and the last program is my executable.
>
> The first time I setup the cygwin environment it doesn't need to 'make clean'.
> I'm not sure if it hurts to run 'make clean' if it doesn't need to. Maybe a
> check in place would be prudent if it shouldn't be running 'make clean if it
> doesn't need to?
>
> Here are the commands I run from within cygwin:
>
> Open the Cygwin terminal
>
> cd /cygdrive/e/development/cygwin/mysql-5.5.25a/
> make clean
> perl cmake/configure.pl
> make && make mysqlclient && make install
>
> cd /cygdrive/e/development/cygwin/postgresql-9.1.4/
> make clean
> ./configure
> make && make install
>
> cd /cygdrive/e/development/cygwin/barnyard2/
> make clean
> ./autogen.sh
> ./configure --with-mysql --with-postgresql
> make && make install
>
> When it completesw the process I need it to create a folder and copy all the
> prudent files and folder. I'm not sure if the below are correct syntax.
>
> mkdir /cygdrive/e/cygwin/barn/
>
> cp /cygdrive/e/cygwin/barnyard2/src/.libs/barnyard2.exe /cygdrive/e/cygwin/barn
> /
>
> cp /cygdrive/e/cygwin/barnyard2/etc/ /cygdrive/e/cygwin/barn/etc/
>
> cp /cygdrive/e/cygwin/barnyard2/schemas/ /cygdrive/e/cygwin/barn/schemas/
>
> cp /cygdrive/e/cygwin/barnyard2/etc/barnyard2.conf /cygdrive/e/cygwin/barn/
>
> cp /cygdrive/e/cygwin/bin/cyggcc_s-1.dll /cygdrive/e/cygwin/barn/
>
> cp /cygdrive/e/cygwin/bin/cygwin1.dll /cygdrive/e/cygwin/barn/
>
> cp /cygdrive/e/cygwin/bin/cygz.dll /cygdrive/e/cygwin/barn/
>
> cp /cygdrive/e/cygwin/usr/local/mysql/lib/cygmysqlclient-
> 18.dll /cygdrive/e/cygwin/barn/
>
> cp /cygdrive/e/cygwin/usr/local/pgsql/lib/cygpq.dll /cygdrive/e/cygwin/barn/
>
> then exit
>
>
> --
> Problem reports:       http://cygwin.com/problems.html
> FAQ:                   http://cygwin.com/faq/
> Documentation:         http://cygwin.com/docs.html
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019