Skip to content

Remove perl as a dependency #21242

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 21, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ documentation.
1. Make sure you have installed the dependencies:
* `g++` 4.7 or `clang++` 3.x
* `python` 2.6 or later (but not 3.x)
* `perl` 5.0 or later
* GNU `make` 3.81 or later
* `curl`
* `git`
Expand Down
3 changes: 1 addition & 2 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,6 @@ putvar CFG_BOOTSTRAP_KEY

step_msg "looking for build programs"

probe_need CFG_PERL perl
probe_need CFG_CURLORWGET curl wget
probe_need CFG_PYTHON python2.7 python2.6 python2 python

Expand Down Expand Up @@ -1375,7 +1374,7 @@ do
done

# Munge any paths that appear in config.mk back to posix-y
perl -i.bak -p -e 's@ ([a-zA-Z]):[/\\]@ /\1/@go;' config.tmp
sed -i.bak -e 's@ \([a-zA-Z]\):[/\\]@ /\1/@g;' config.tmp
rm -f config.tmp.bak

msg
Expand Down
34 changes: 0 additions & 34 deletions src/etc/check-links.pl

This file was deleted.

29 changes: 16 additions & 13 deletions src/etc/indenter
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
#!/usr/bin/perl
use strict;
use warnings;
#!/usr/bin/env python
import re
import sys

my $indent = 0;
while (<>) {
if (/^rust: ~">>/) {
$indent += 1;
}
indent = 0
more_re = re.compile(r"^rust: ~\">>")
less_re = re.compile(r"^rust: ~\"<<")
while True:
line = sys.stdin.readline()
if not line:
break

printf "%03d %s%s", $indent, (" " x $indent), $_;
if more_re.match(line):
indent += 1

if (/^rust: ~"<</) {
$indent -= 1;
}
}
print "%03d %s%s" % (indent, " " * indent, line.strip())

if less_re.match(line):
indent -= 1