~ubuntu-branches/ubuntu/trusty/erlang/trusty

« back to all changes in this revision

Viewing changes to debian/scripts/fixmanpages

  • Committer: Bazaar Package Importer
  • Author(s): Clint Byrum
  • Date: 2011-05-05 15:48:43 UTC
  • mfrom: (3.5.13 sid)
  • Revision ID: james.westby@ubuntu.com-20110505154843-0om6ekzg6m7ugj27
Tags: 1:14.b.2-dfsg-3ubuntu1
* Merge from debian unstable.  Remaining changes:
  - Drop libwxgtk2.8-dev build dependency. Wx isn't in main, and not
    supposed to.
  - Drop erlang-wx binary.
  - Drop erlang-wx dependency from -megaco, -common-test, and -reltool, they
    do not really need wx. Also drop it from -debugger; the GUI needs wx,
    but it apparently has CLI bits as well, and is also needed by -megaco,
    so let's keep the package for now.
  - debian/patches/series: Do what I meant, and enable build-options.patch
    instead.
* Additional changes:
  - Drop erlang-wx from -et
* Dropped Changes:
  - patches/pcre-crash.patch: CVE-2008-2371: outer level option with
    alternatives caused crash. (Applied Upstream)
  - fix for ssl certificate verification in newSSL: 
    ssl_cacertfile_fix.patch (Applied Upstream)
  - debian/patches/series: Enable native.patch again, to get stripped beam
    files and reduce the package size again. (build-options is what
    actually accomplished this)
  - Remove build-options.patch on advice from upstream and because it caused
    odd build failures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
 
 
3
DIR=$1
 
4
 
 
5
cp $DIR/man3/dialyzer.3 $DIR/man1/dialyzer.1
 
6
mv $DIR/man1/start.1 $DIR/man1/start_embedded.1
 
7
 
 
8
# Fix manpages
 
9
for f in $DIR/*/*.1 ; do
 
10
    sed -i -e's/, start_erl(1)//g' \
 
11
           -e's/start(1)/start_embedded(1)/g' \
 
12
        $f
 
13
done
 
14
 
 
15
sed -i -e's/^\(\.TH .*\) 3 \(.*\) "Erlang Module Definition"/\1 1 \2 "User Commands"/' \
 
16
    $DIR/man1/dialyzer.1
 
17
 
 
18
sed -i -e's/^start \\-/start_embedded \\-/' \
 
19
       -e's/^\.TH start 1/.TH start_embedded 1/' \
 
20
    $DIR/man1/start_embedded.1
 
21
 
 
22
for f in $DIR/*/*.[1-6] ; do
 
23
    sed -i -e's/^\(\.TH .*\) 3 /\1 3erl /' \
 
24
           -e's/\([^[:space:]]\)(3)/\1(3erl)/g' \
 
25
           -e's/\([^[:space:]]\)(4)/\1(5)/g' \
 
26
           -e's/\([^[:space:]]\)(6)/\1(7)/g' \
 
27
        $f
 
28
done
 
29
 
 
30
for f in $DIR/*/*.3 ; do \
 
31
    mv $f ${f}erl ; \
 
32
done