projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make an MARC conversion trie for each characterSet section rather than
[yaz-moved-to-github.git]
/
test
/
tstmarciso.sh
diff --git
a/test/tstmarciso.sh
b/test/tstmarciso.sh
index
a51a48a
..
77d41a9
100755
(executable)
--- a/
test/tstmarciso.sh
+++ b/
test/tstmarciso.sh
@@
-1,13
+1,17
@@
#!/bin/sh
#!/bin/sh
-# $Id: tstmarciso.sh,v 1.2 2006-04-20 19:47:02 adam Exp $
+# $Id: tstmarciso.sh,v 1.5 2007-01-18 11:44:50 adam Exp $
# Tests reading of ISO2709 and checks that we get identical MARCXML
# Tests reading of ISO2709 and checks that we get identical MARCXML
+#
+# Reads marc?.marc files , Generates marc?.xml files
srcdir=${srcdir:-.}
ecode=0
srcdir=${srcdir:-.}
ecode=0
-for f in ${srcdir}/marc?; do
- NEW=`basename ${f}`.new.xml
- OLD=${f}.xml
+for f in ${srcdir}/marc?.marc; do
+ fb=`basename ${f} .marc`
+ CHR=${srcdir}/${fb}.chr
+ NEW=${fb}.new.xml
+ OLD=${srcdir}/${fb}.xml
DIFF=`basename ${f}`.diff
DIFF=`basename ${f}`.diff
- ../util/yaz-marcdump -f `cat ${f}.chr` -t utf-8 -X $f > $NEW
+ ../util/yaz-marcdump -f `cat $CHR` -t utf-8 -o marcxml $f > $NEW
if test $? != "0"; then
echo "$f: yaz-marcdump returned error"
ecode=1
if test $? != "0"; then
echo "$f: yaz-marcdump returned error"
ecode=1
@@
-37,3
+41,8
@@
for f in ${srcdir}/marc?; do
done
exit $ecode
done
exit $ecode
+# Local Variables:
+# mode:shell-script
+# sh-indentation: 2
+# sh-basic-offset: 4
+# End: