/usr/bin/bibtexconv-odt is in bibtexconv 0.8.20-1build2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | #!/bin/sh
# $Id: bibtexconv-odt 1377 2012-05-13 20:56:15Z dreibh $
#
# Copyright (C) 2010-2012 by Thomas Dreibholz
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# Contact: dreibh@iem.uni-due.de
set -e
if [ $# -ne 4 ] ; then
echo >&2 "Usage: $0 Template_ODT Output_ODT BibTeX_File Export_Script"
exit 1
fi
TEMPLATE_ODT="$1"
OUTPUT_ODT="$2"
BIBTEX_FILE="$3"
EXPORT_SCRIPT="$4"
TEMP_ZIP=`mktemp -d`
bibtexconv "$BIBTEX_FILE" <"$EXPORT_SCRIPT" >"$TEMP_ZIP/content.xml"
cp "$TEMPLATE_ODT" "$TEMP_ZIP/template.odt"
( cd "$TEMP_ZIP"
zip template.odt --out output.odt -x content.xml
zip output.odt content.xml )
mv "$TEMP_ZIP/output.odt" "$OUTPUT_ODT"
rm -rf "$TEMP_ZIP" || true
|