File: gen_php4_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 (20 lines) | stat: -rwxr-xr-x 584 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
#run this in the php tarball topdir

cat /dev/null > $HOME/.bluefish/php4_functions

egrep -r '/\* {{{ proto' * | while read LINE ; do
#	DIR=`echo $LINE | cut -f1 -d:`
	GROUP=`echo $LINE | cut -f1 -d: | cut -f -1 -d. | cut -f3 -d/`
	if [ -z "$GROUP" ] ; then
		GROUP=`echo $LINE | cut -f1 -d: | cut -f -1 -d. | cut -f2 -d/`
	fi
	FFCHAR=`echo $GROUP|cut -c0-4`
#	echo $FFCHAR
	if [ "$FFCHAR" = "php_" ] ; then
		GROUP=`echo $GROUP|cut -c5-`
	fi
	PROTO=`echo $LINE | cut -f2 -d: | cut -c14-`
#	echo "$GROUP:$PROTO" >> $HOME/.bluefish/php4_functions
	echo "$GROUP:$PROTO"
done