File: gen_rxml_functions

package info (click to toggle)
bluefish 0.7-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 6,984 kB
  • ctags: 2,208
  • sloc: ansic: 25,688; sh: 2,531; makefile: 382; sed: 93
file content (19 lines) | stat: -rwxr-xr-x 710 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
#

#this file gets the RXML reference file for Bluefish out of 
# http://www.roxen.com/documentation/Challenger1.2/User/appendix/index.html
cat /dev/null > RXML_tags
cat roxen.html | cut -f 5,10,15 -d \> | cut -f 1,2,3 -d \< | while read LINE ; do
   TAG=`echo $LINE | cut -f 1 -d \<`
   VARS=`echo $LINE | cut -f 2 -d \< | cut -f 2 -d \>`
   GROUP=`echo $LINE | cut -f 3 -d \< | cut -f 2 -d \>`
   echo "$GROUP:<$TAG $VARS>" >> RXML_tags
done
cat RXML_tags | sort > RXML.tmp
/usr/local/bin/rpl -q \&nbsp\; "" RXML.tmp
/usr/local/bin/rpl -q , = RXML.tmp
/usr/local/bin/rpl -q \&lt\; \< RXML.tmp
/usr/local/bin/rpl -q \&gt\;= \> RXML.tmp
/usr/local/bin/rpl -q \&gt\; \> RXML.tmp
mv RXML.tmp RXML_tags