From 1aaff311bd4ff2f5ca02c039be9736433837e3d2 Mon Sep 17 00:00:00 2001 From: fr33domlover Date: Wed, 7 Jan 2015 03:16:39 +0200 Subject: [PATCH 1/2] Add lighttpd helper: fix ubuntu references in default index.html --- helpers/make-lighttpd | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 helpers/make-lighttpd diff --git a/helpers/make-lighttpd b/helpers/make-lighttpd new file mode 100644 index 0000000..9613be5 --- /dev/null +++ b/helpers/make-lighttpd @@ -0,0 +1,29 @@ +#!/bin/sh +# +# Copyright (C) 2015 fr33domlover +# +# 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 . + +VERSION=1 + +. ./config + +sed -e 's~Ubuntu\sBug\sTracking\sSystem~upstream bug tracker~g' \ + -e 's~Ubuntu~Trisquel GNU/Linux~g' \ + -e 's~packages\.ubuntu\.com~packages.trisquel.info~g' \ + -i debian/index.html + +changelog "Fix Ubuntu references in the default index.html" + +compile From 1e7bd80c120ee1fcb41a59cdc378e649d587a382 Mon Sep 17 00:00:00 2001 From: fr33domlover Date: Wed, 7 Jan 2015 04:30:34 +0200 Subject: [PATCH 2/2] lighttpd: fix sed usage to make the helper not complain --- helpers/make-lighttpd | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/helpers/make-lighttpd b/helpers/make-lighttpd index 9613be5..36b222e 100644 --- a/helpers/make-lighttpd +++ b/helpers/make-lighttpd @@ -19,10 +19,11 @@ VERSION=1 . ./config -sed -e 's~Ubuntu\sBug\sTracking\sSystem~upstream bug tracker~g' \ - -e 's~Ubuntu~Trisquel GNU/Linux~g' \ - -e 's~packages\.ubuntu\.com~packages.trisquel.info~g' \ - -i debian/index.html +HTML_FILE=debian/index.html + +sed -i 's~Ubuntu\sBug\sTracking\sSystem~upstream bug tracker~g' $HTML_FILE +sed -i 's~Ubuntu~Trisquel GNU/Linux~g' $HTML_FILE +sed -i 's~packages\.ubuntu\.com~packages.trisquel.info~g' $HTML_FILE changelog "Fix Ubuntu references in the default index.html"