mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
4ba103156d
handles default settings and has a prototype translation file for people wishing to add extra languages (please!). Submitted by: Wolfram Schneider <wosch@cs.tu-berlin.de>
12 lines
307 B
Perl
12 lines
307 B
Perl
#!/usr/bin/perl
|
|
#
|
|
# makes perl scripts smaller, useful for boot floppies
|
|
|
|
while(<>) {
|
|
s/(\s|^|;)#.*//; # comments
|
|
s/\s+$//; # leading spaces
|
|
s/^\s+//; # ending spaces
|
|
s/\s+/ /g; # double spaces
|
|
s/\s*([=\(\{\)\}])\s*/$1/g; # spaces around =(){}
|
|
print "$_\n" if $_;
|
|
}
|