~ubuntu-branches/ubuntu/trusty/texlive-base/trusty

« back to all changes in this revision

Viewing changes to debian/texlive-base.preinst.post

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Preining
  • Date: 2010-09-25 09:03:10 UTC
  • mfrom: (9.2.5 sid)
  • Revision ID: james.westby@ubuntu.com-20100925090310-2sdxk6ak0kn3kbsb
Tags: 2009-11
avoid unneeded 10texlive-base.cnfpre-edit files in /etc/texmf/fmt.d,
thanks Jörg-Volker Peetz (Closes: #584950)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
# make sure that no strange old duplicate lines are hanging around in
4
4
# 10texlive-base.cnf
5
 
if [ -r /etc/texmf/fmt.d/10texlive-base.cnf ] ; then
 
5
# but do the sed command only if the key line below actually occurs, so
 
6
# that we do not create spurious empty conffiles in /etc/texmf/fmt.d
 
7
cnffile=/etc/texmf/fmt.d/10texlive-base.cnf
 
8
if [ -r $cnffile ] && [ -n "$(sed -n '/^# The following added lines have been transferred from/ {p;q}' $cnffile)" ]; then
6
9
  sed --in-place=pre-edit '
7
10
    /^# The following added lines have been transferred from/ {
8
11
                  # the next four N command merge the following lines into