Hello community,

here is the log from the commit of package trang for openSUSE:Factory
checked in at Wed Apr 27 09:25:55 CEST 2011.



--------
--- trang/trang.changes 2010-03-19 13:45:07.000000000 +0100
+++ /mounts/work_src_done/STABLE/trang/trang.changes    2011-04-26 
09:13:50.000000000 +0200
@@ -1,0 +2,6 @@
+Tue Apr 26 07:11:51 UTC 2011 - [email protected]
+
+- fix bnc#689377 - add support for multiple input files to /usr/bin/trang
+  patch by Justin McAteer - just_mcateer at hotmail
+
+-------------------------------------------------------------------

calling whatdependson for head-i586


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ trang.spec ++++++
--- /var/tmp/diff_new_pack.Fn4nq7/_old  2011-04-27 09:19:40.000000000 +0200
+++ /var/tmp/diff_new_pack.Fn4nq7/_new  2011-04-27 09:19:40.000000000 +0200
@@ -1,7 +1,7 @@
 #
-# spec file for package trang (Version 20091111)
+# spec file for package trang
 #
-# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -22,9 +22,9 @@
 BuildRequires:  unzip
 Summary:        Schema Converter Based on RELAX NG
 Version:        20091111
-Release:        1
+Release:        7
 Url:            http://code.google.com/p/jing-trang/
-Source:         http://jing-trang.googlecode.com/files/%{name}-%{version}.zip
+Source0:        http://jing-trang.googlecode.com/files/%{name}-%{version}.zip
 Source1:        %{name}
 Source2:        %{name}-doc.tar.bz2
 License:        BSD3c

++++++ trang ++++++
--- /var/tmp/diff_new_pack.Fn4nq7/_old  2011-04-27 09:19:40.000000000 +0200
+++ /var/tmp/diff_new_pack.Fn4nq7/_new  2011-04-27 09:19:40.000000000 +0200
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 
 usage () {
   echo "Usage: $0 [-I rng|rnc|dtd|xml] [-O rng|rnc|dtd|xsd] [-i input-param] 
[-o output-param] inputFileOrUri ... outputFile" >&2
@@ -31,11 +31,15 @@
 
 shift $(($OPTIND - 1))
 
-test $# -eq 2 || usage
+test $# -gt 1 || usage
 
-in="$1"
-out="$2"
+while [ $# -gt 1 ]; do
+  in="$in $1"
+  shift
+done
+
+out="${!#}"
 
-java -jar /usr/share/java/trang.jar $args "$in" "$out"
+java -jar /usr/share/java/trang.jar $args $in "$out"
 
 exit 0



++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to