#!/bin/bash ORGFILE=$(mktemp XXXXXXX.org) trap "{ rm -rf $ORGFILE; }" EXIT cat > $ORGFILE < # # 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 # . #+title: Play the merchant #+subitile: version {{{version}}} of the program #+author: Vivien Kraus #+email: vivien@planete-kraus.eu #+options: ':t toc:t author:t email:t #+language: en #+texinfo_filename: marchande.info #+texinfo_dir_category: Games #+texinfo_dir_title: marchande: (marchande) #+texinfo_dir_desc: Marchande #+texinfo_printed_title: Marchande #+texinfo: @documentencoding UTF-8 This manual is for marchande version {{{version}}}. * Copying :PROPERTIES: :COPYING: t :END: This manual is for Marchande (version {{{version}}}), an example about how to make a command-line interface. Copyright @@texinfo:@copyright{}@@ 2019 Vivien Kraus #+BEGIN_QUOTE Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 3 or any later version published by the Free Software Foundation. #+END_QUOTE * Introduction #+include: "./index.org::*Le jeu de la marchande, en anglais (désolé si c'est mal traduit)" :only-contents t EOF LANG=C emacs --batch \ --file $ORGFILE \ --eval "(require 'ox-texinfo)" \ -f org-texinfo-export-to-texinfo \ || exit 1 cat "$(basename $ORGFILE .org).texi"