mirror of
https://bitbucket.org/seefoe/src.git
synced 2026-07-31 01:15:45 -04:00
Added database/sql
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/perl
|
||||
|
||||
while (<>)
|
||||
{
|
||||
chop;
|
||||
if (/procedure/ || /function/)
|
||||
{
|
||||
$print = 1;
|
||||
}
|
||||
if (/begin/ || /\s+as/)
|
||||
{
|
||||
if ($print)
|
||||
{
|
||||
$print = 0;
|
||||
print ";\n";
|
||||
}
|
||||
}
|
||||
s/\t/ /;
|
||||
s/(\s)\s+/$1/g;
|
||||
s/\(\s+/\(/g;
|
||||
s/\s+\)/\)/g;
|
||||
print if ($print)
|
||||
}
|
||||
Reference in New Issue
Block a user