"Fossies" - the Fresh Open Source Software Archive

Member "cb2bib-2.0.1/c2bscripts/c2bimport" (12 Feb 2021, 827 Bytes) of package /linux/privat/cb2bib-2.0.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "c2bimport": 2.0.0_vs_2.0.1.

    1 #!/bin/sh
    2 #-------------------------------------------------------------------------------
    3 # c2bimport -- Script for calling cb2Bib in "Download Reference to cb2Bib" mode
    4 # cb2Bib Tools
    5 # Copyright (C) 2004-2021 by Pere Constans
    6 # constans@molspaces.com
    7 #
    8 # Copyright (C) 2009 by Filippo Rusconi
    9 # rusconi@mnhn.fr
   10 #
   11 # June 2009:
   12 # - Make use of quoted "$1" argument instead of $1.
   13 #
   14 # See the LICENSE file that comes with this distribution
   15 #-------------------------------------------------------------------------------
   16 # Usage: c2bimport tmp_imported_reference_file
   17 #-------------------------------------------------------------------------------
   18 
   19 if test "$#" != 1; then
   20   cat <<EOF
   21 Script for calling cb2Bib in "Download Reference to cb2Bib" mode
   22 Usage: $0 tmp_imported_reference_file
   23 EOF
   24   exit 2
   25 fi
   26 
   27 cb2bib --import "$1"