~ubuntu-branches/ubuntu/natty/bluefish/natty-proposed

« back to all changes in this revision

Viewing changes to data/gen_php4_functions

  • Committer: Bazaar Package Importer
  • Author(s): Davide Puricelli (evo)
  • Date: 2005-04-23 17:05:18 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20050423170518-pb8zi3vg32cm6g04
Tags: 1.0-1
* Acknowledge NMU, thanks Leo; closes: #291222.
* Updated debian/ files, thanks Daniel Leidert. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
#run this in the php tarball topdir
3
 
 
4
 
cat /dev/null > $HOME/.bluefish/php4_functions
5
 
 
6
 
egrep -r '/\* {{{ proto' * | while read LINE ; do
7
 
#       DIR=`echo $LINE | cut -f1 -d:`
8
 
        GROUP=`echo $LINE | cut -f1 -d: | cut -f -1 -d. | cut -f3 -d/`
9
 
        if [ -z "$GROUP" ] ; then
10
 
                GROUP=`echo $LINE | cut -f1 -d: | cut -f -1 -d. | cut -f2 -d/`
11
 
        fi
12
 
        FFCHAR=`echo $GROUP|cut -c0-4`
13
 
#       echo $FFCHAR
14
 
        if [ "$FFCHAR" = "php_" ] ; then
15
 
                GROUP=`echo $GROUP|cut -c5-`
16
 
        fi
17
 
        PROTO=`echo $LINE | cut -f2 -d: | cut -c14-`
18
 
#       echo "$GROUP:$PROTO" >> $HOME/.bluefish/php4_functions
19
 
        echo "$GROUP:$PROTO"
20
 
done