~ubuntu-branches/ubuntu/wily/maradns/wily-proposed

« back to all changes in this revision

Viewing changes to deadwood-3.2.05/tools/ej/ej2raw

  • Committer: Package Import Robot
  • Author(s): Dariusz Dwornikowski, Tomasz Buchert, Dariusz Dwornikowski
  • Date: 2015-03-27 18:34:08 UTC
  • mfrom: (1.2.12)
  • Revision ID: package-import@ubuntu.com-20150327183408-wnfachdkdjt96yu6
Tags: 2.0.11-1
[ Tomasz Buchert ]
* Imported Upstream version 2.0.11

[ Dariusz Dwornikowski ]
* d/patches: 
  - refreshed all patches for new deadwood version
  - removed generating of random prime on build (Closes: #785536) 
* d/rules: date taken from changelog (Closes: #785535)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/bash
2
 
 
3
 
# Convert an ej document to an HTML document; which we then make a text
4
 
# document.  This is designed to "sew" together text data files
5
 
# using the ej system and the relevent parts of the data files in <pre>
6
 
# tags.
7
 
# The perl script simply elimanates everything before a pre tag and 
8
 
# everything after a /pre tag
9
 
 
10
 
if [ ! -d ~/tmp ] ; then
11
 
        echo ~/tmp directory is required
12
 
fi
13
 
 
14
 
ej2html < $1 > ~/tmp/$$.html
15
 
cat ~/tmp/$$.html | perl -e \
16
 
    'while(<>){$a.=$_};$a=~s|.*<pre>(.*)</pre>.*|$1|si;print $a'
17
 
rm ~/tmp/$$.html
18