X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=util%2Fcql2pqf.c;h=ba7c1a983afa9f9daf4e58258b1ef1601337dcd6;hb=4cdc954013878a64caac253e1275a5ca80782206;hp=070e54273aa3fcf85776ddabe9b7df04e77c6951;hpb=b977948f73d07c0bf4478565f9af3497ffe862e7;p=yaz-moved-to-github.git diff --git a/util/cql2pqf.c b/util/cql2pqf.c index 070e542..ba7c1a9 100644 --- a/util/cql2pqf.c +++ b/util/cql2pqf.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2008 Index Data + * Copyright (C) 1995-2009 Index Data * See the file LICENSE for details. */ @@ -48,7 +48,10 @@ int main(int argc, char **argv) } if (!fname) usage(); - ct = cql_transform_open_fname(fname); + if (!strcmp(fname, "-")) + ct = cql_transform_create(); + else + ct = cql_transform_open_fname(fname); if (!ct) { fprintf(stderr, "failed to read properties %s\n", fname); @@ -127,6 +130,7 @@ int main(int argc, char **argv) /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab