Re: [basex-talk] Running basexclient Command From a Bash Script

2015-03-24 Thread Christian Grün
Hi Eliot, Thanks for the link to your BaseX script. If you can create a temporary file with the paths to all updated git in the first step, you could use an XQuery script to replace all files in the database: _ basex call __ $ basex -bpwd=$topDir -bdb=$basexDatabase

Re: [basex-talk] Running basexclient Command From a Bash Script

2015-03-22 Thread Charles Duffy
[Eliot, apologies for the duplicate mail -- I just realized that my initial replies weren't CC'd to the list. Note that this fixes a bug in the last version I sent you privately; please use it in preference]. --- Please see BashFAQ #50: http://mywiki.wooledge.org/BashFAQ/050; argument lists

Re: [basex-talk] Running basexclient Command From a Bash Script

2015-03-22 Thread Eliot Kimber
Small hick-up: the script works under OS X (and I'll assume under Linux) but not in the git shell under Windows. I should be able to use a separate batch script for Windows but it would be easiest if a single script was cross platform. Hmph. Cheers, E. — Eliot Kimber, Owner Contrext, LLC

Re: [basex-talk] Running basexclient Command From a Bash Script

2015-03-22 Thread Eliot Kimber
Cool, Thanks for all the info. I knew it was due to my very weak understanding of bash scripting. The improved script you suggested worked. I'll do the reading necessary to understand *why* it works, but that gets me over the immediate hurdle. Cheers, E. — Eliot Kimber, Owner Contrext,