]> granicus.if.org Git - postgis/commitdiff
Strip newlines and comments from uninstall/drop scripts
authorSandro Santilli <strk@keybit.net>
Mon, 16 Mar 2015 08:46:10 +0000 (08:46 +0000)
committerSandro Santilli <strk@keybit.net>
Mon, 16 Mar 2015 08:46:10 +0000 (08:46 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@13336 b70326c6-7e19-0410-871a-916f4a2858ee

utils/create_undef.pl

index 7ec65684396ab8aabca46da56eee1b26e93f3d98..6ab7bd21a5329992652a352d12ae1f658e1e73e1 100755 (executable)
@@ -224,6 +224,8 @@ foreach my $fn (@funcs)
        {
                my $fn_nm = $1;
                my $fn_arg = $2;
+               $fn_arg =~ s/\-\-.*\n//g;
+               $fn_arg =~ s/\n//g;
 
                $fn_arg = strip_default($fn_arg);
                if ( ! exists($type_funcs{$fn_nm}) )