[Trisquel-devel] [PATCH] Remove non-free score
Legimet
legimet.calc at gmail.com
Mon Jun 23 18:29:04 CEST 2014
It looks fine, but when you use that sed command, you don't need to output to another temporary file and move it to the old location. There's a sed option '-i' which has the same effect.
Legimet
mejiko <kame55-itasenpara123 at y2.dion.ne.jp> wrote:
>I create make-musescore package helper.
>I tested this script, but I'm not tested build package.
>
>Thanks !
>
>---
> helpers/make-musescore | 38 ++++++++++++++++++++++++++++++++++++++
> 1 file changed, 38 insertions(+)
> create mode 100644 helpers/make-musescore
>
>diff --git a/helpers/make-musescore b/helpers/make-musescore
>new file mode 100644
>index 0000000..d0714af
>--- /dev/null
>+++ b/helpers/make-musescore
>@@ -0,0 +1,38 @@
>+#!/bin/sh
>+#
>+# Copyright (C) 2014 Kouta Ikematsu <kame55-itasenpara123 at y2.dion.ne.jp>
>+#
>+# 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 2 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, write to the Free Software Foundation, Inc.,
>+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
>+
>+VERSION=1
>+
>+. ./config
>+
>+## Chack non-free score (If this file is none, No freedom problem.)
>+
>+if [ -f ./mscore/demos/prelude.mscx ]
>+then
>+
>+## Remove non-free score
>+rm ./mscore/demos/prelude.mscx
>+sed /prelude.mscx/d ./mscore/demos/CMakeLists.txt > ./mscore/demos/CMakeLists.txt.new
>+mv ./mscore/demos/CMakeLists.txt.new ./mscore/demos/CMakeLists.txt
>+echo "#changelog: `env LANG=C date '+%Y-%m%d'` Trisquel-package-helper: Remove prelude.mscx" >> ./mscore/demos/CMakeLists.txt
>+
>+## Write changelog and compile.
>+changelog "Removed non-free score"
>+compile
>+
>+fi
>--
>1.7.9.5
>
>_______________________________________________
>Trisquel-devel mailing list
>Trisquel-devel at listas.trisquel.info
>http://listas.trisquel.info/mailman/listinfo/trisquel-devel
More information about the Trisquel-devel
mailing list