FreeBSD Bugzilla – Attachment 32922 Details for
Bug 54174
clean spaces behind variables out of port Makefiles
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
clean.sh
clean.sh (text/plain), 584 bytes, created by
Oliver Lehmann
on 2003-07-07 12:00:27 UTC
(
hide
)
Description:
clean.sh
Filename:
MIME Type:
Creator:
Oliver Lehmann
Created:
2003-07-07 12:00:27 UTC
Size:
584 bytes
patch
obsolete
>#!/bin/sh > >ERROR() { > echo $1 > exit $2 >} > >for file in `find ./ports/ -name Makefile` ; do > awk ' { > a=gensub(/(^[A-Z_+\?0-9]+)[ ]+(=[ \t]+)/,"\\1\\2","g") > } > a~/^[A-Z_+\?0-9]+=[ ]+/ { > gsub(/ /,"\t",a) > } > a~/^[A-Z_+\?0-9]+=[ ]+[\t]+/ || a~/^[A-Z_+\?0-9]+=[\t]+[ ]+/ { > if(length($1) < 8 ) { > sub(/[ ]+/,"\t",a) > } else { > sub(/[ ]+/,"",a) > } > } > a~/^[A-Z_+\?0-9]+=[ ]+/ { > sub(/[ ]+/,"\t",a) > } > { > print a > }' $file > $file.$$ || ERROR "error on processing $file with awk" 1 > mv $file.$$ $file || ERROR "error moving $file.$$ to $file" 2 >done
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 54174
: 32922