diff --git a/helpers/DATA/calibre/quick_start.epub b/helpers/DATA/calibre/quick_start.epub new file mode 100644 index 0000000000000000000000000000000000000000..4a95566bb189db9ca282170af54e2a92319377d3 Binary files /dev/null and b/helpers/DATA/calibre/quick_start.epub differ diff --git a/helpers/make-calibre b/helpers/make-calibre index 5258ee4d93504636fd35eff67ad2b6faad16bbd4..b774ca1b20eb093763a726289a89d56c29136e3f 100644 --- a/helpers/make-calibre +++ b/helpers/make-calibre @@ -1,6 +1,6 @@ -#!/bin/bash +#!/bin/sh # -# Copyright (C) 2015 Andrew M. Lindley <andrew@andrewlindley.co.uk> +# Copyright (C) 2015 Legimet <legimet.calc@gmail.com> # # 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 @@ -17,24 +17,13 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # -VERSION=1 +VERSION=2 . ./config -TEMP=$(mktemp -d --tmpdir) -TEMP_EPUB=$(mktemp --tmpdir --suffix=.zip -u) -EPUB="resources/quick_start.epub" -unzip $EPUB -d $TEMP -sed 's% or <a href="http://www.bookdesigner.org/wordpress/">Book Designer</a>%%' -i $TEMP/OEBPS/Text/calibre_quick_start_split_007.xhtml -pushd $TEMP -zip --quiet --recurse-paths $TEMP_EPUB . -pushd -mv $TEMP_EPUB $EPUB -chmod 0644 $EPUB -rm -rf $TEMP +cp $DATA/quick_start.epub resources/quick_start.epub -changelog 'Remove steer to non-free software from resources/quick_start.epub - #5426' +changelog 'Replace quick_start.epub with free version that does not recommend nonfree program, #5426' compile