summaryrefslogtreecommitdiff
path: root/usr/src/tools
diff options
context:
space:
mode:
authorPiotr Jasiukajtis <estibi@me.com>2012-10-17 01:35:22 -0700
committerGarrett D'Amore <garrett@damore.org>2012-10-17 01:35:22 -0700
commit6066d16efa0b0247d0ea7e382214e7d19b0681a9 (patch)
tree6754d4231577d36808240b7ed689c7c8972fa490 /usr/src/tools
parent1c5bc425cc346c6844d58e1fdd8794e9553dd289 (diff)
downloadillumos-joyent-6066d16efa0b0247d0ea7e382214e7d19b0681a9.tar.gz
2563 remove python2.4 from onbld
Reviewed by: Bayard Bell <buffer.g.overflow@gmail.com> Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com> Reviewed by: Richard Lowe <richlowe@richlowe.net> Reviewed by: Eric Schrock <eric.schrock@delphix.com> Reviewed by: Garrett D'Amore <garrett@damore.org> Approved by: Garrett D'Amore <garrett@damore.org>
Diffstat (limited to 'usr/src/tools')
-rw-r--r--usr/src/tools/Makefile7
-rw-r--r--usr/src/tools/Makefile.python19
-rw-r--r--usr/src/tools/Makefile.tools1
-rw-r--r--usr/src/tools/scripts/cddlchk.py2
-rw-r--r--usr/src/tools/scripts/copyrightchk.py2
-rw-r--r--usr/src/tools/scripts/git-pbchk.py2
-rw-r--r--usr/src/tools/scripts/hdrchk.py2
-rw-r--r--usr/src/tools/scripts/hg-active.py2
-rw-r--r--usr/src/tools/scripts/mapfilechk.py2
9 files changed, 12 insertions, 27 deletions
diff --git a/usr/src/tools/Makefile b/usr/src/tools/Makefile
index 670c2de281..fe263c4d79 100644
--- a/usr/src/tools/Makefile
+++ b/usr/src/tools/Makefile
@@ -90,11 +90,6 @@ ROOTDIRS= \
$(ROOTONBLD)/lib \
$(ROOTONBLD)/lib/$(MACH) \
$(ROOTONBLD)/lib/perl \
- $(ROOTONBLD)/lib/python2.4 \
- $(ROOTONBLD)/lib/python2.4/onbld \
- $(ROOTONBLD)/lib/python2.4/onbld/Checks \
- $(ROOTONBLD)/lib/python2.4/onbld/hgext \
- $(ROOTONBLD)/lib/python2.4/onbld/Scm \
$(ROOTONBLD)/lib/python2.6 \
$(ROOTONBLD)/lib/python2.6/onbld \
$(ROOTONBLD)/lib/python2.6/onbld/Checks \
@@ -146,6 +141,6 @@ $(ROOTDIRS):
$(INS.dir)
$(ROOTONBLDLIBPY): $(ROOTDIRS)
- $(RM) -r $@; $(SYMLINK) python2.4 $@
+ $(RM) -r $@; $(SYMLINK) python2.6 $@
FRC:
diff --git a/usr/src/tools/Makefile.python b/usr/src/tools/Makefile.python
index a68ff026f6..dcf7c06360 100644
--- a/usr/src/tools/Makefile.python
+++ b/usr/src/tools/Makefile.python
@@ -63,43 +63,34 @@
PYFILES = $(PYSRCS) $(PYOBJS)
-ROOTPYDIR_24 = $(PYTOPDIR)/python2.4/$(PYMODDIR)
-ROOTPYFILES_24 = $(PYFILES:%=$(ROOTPYDIR_24)/%)
-
ROOTPYDIR_26 = $(PYTOPDIR)/python2.6/$(PYMODDIR)
ROOTPYFILES_26 = $(PYFILES:%=$(ROOTPYDIR_26)/%)
-ROOTPYFILES = $(ROOTPYFILES_24) $(ROOTPYFILES_26)
+ROOTPYFILES = $(ROOTPYFILES_26)
$(ROOTPYFILES) := FILEMODE = 0444
-PYVERSDIRS = python2.4 python2.6
-
-PY24OBJS = $(PYOBJS:%=python2.4/%)
-$(PY24OBJS) := PYTHON = $(PYTHON_24)
+PYVERSDIRS = python2.6
PY26OBJS = $(PYOBJS:%=python2.6/%)
$(PY26OBJS) := PYTHON = $(PYTHON_26)
-PYVERSOBJS = $(PY24OBJS) $(PY26OBJS)
+PYVERSOBJS = $(PY26OBJS)
CLOBBERFILES += $(PYVERSOBJS)
CLOBBERDIRS += $(PYVERSDIRS)
.KEEP_STATE:
-python2.4/%.pyc python2.6/%.pyc: %.py
+python2.6/%.pyc: %.py
@[ -d $(@D) ] || mkdir $(@D)
$(RM) $@
$(PYTHON) -mpy_compile $<
$(MV) $(*).pyc $@
-$(ROOTPYDIR_24)/%.pyc: python2.4/%.pyc
- $(INS.pyfile)
-
$(ROOTPYDIR_26)/%.pyc: python2.6/%.pyc
$(INS.pyfile)
-$(ROOTPYDIR_24)/%.py $(ROOTPYDIR_26)/%.py: %.py
+$(ROOTPYDIR_26)/%.py: %.py
$(INS.pyfile)
pyclobber:
diff --git a/usr/src/tools/Makefile.tools b/usr/src/tools/Makefile.tools
index c2bfdefd74..974543107d 100644
--- a/usr/src/tools/Makefile.tools
+++ b/usr/src/tools/Makefile.tools
@@ -38,7 +38,6 @@ ROOTONBLDLIB= $(ROOTONBLD)/lib
ROOTONBLDLIBMACH= $(ROOTONBLD)/lib/$(MACH)
ROOTONBLDLIBPERL= $(ROOTONBLD)/lib/perl
ROOTONBLDLIBPY= $(ROOTONBLD)/lib/python
-ROOTONBLDLIBPY_24= $(ROOTONBLD)/lib/python2.4
ROOTONBLDLIBPY_26= $(ROOTONBLD)/lib/python2.6
ROOTONBLDENV= $(ROOTONBLD)/env
ROOTONBLDGK= $(ROOTONBLD)/gk
diff --git a/usr/src/tools/scripts/cddlchk.py b/usr/src/tools/scripts/cddlchk.py
index 62a2695946..816d2f33a7 100644
--- a/usr/src/tools/scripts/cddlchk.py
+++ b/usr/src/tools/scripts/cddlchk.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python2.4
+#!/usr/bin/python2.6
#
# CDDL HEADER START
#
diff --git a/usr/src/tools/scripts/copyrightchk.py b/usr/src/tools/scripts/copyrightchk.py
index 1426a69bfa..210ef1b46c 100644
--- a/usr/src/tools/scripts/copyrightchk.py
+++ b/usr/src/tools/scripts/copyrightchk.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python2.4
+#!/usr/bin/python2.6
#
# CDDL HEADER START
#
diff --git a/usr/src/tools/scripts/git-pbchk.py b/usr/src/tools/scripts/git-pbchk.py
index 74be6a4818..98a5c8628d 100644
--- a/usr/src/tools/scripts/git-pbchk.py
+++ b/usr/src/tools/scripts/git-pbchk.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python2.4
+#!/usr/bin/python2.6
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2
diff --git a/usr/src/tools/scripts/hdrchk.py b/usr/src/tools/scripts/hdrchk.py
index 3ecec6b3f2..84acbc8616 100644
--- a/usr/src/tools/scripts/hdrchk.py
+++ b/usr/src/tools/scripts/hdrchk.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python2.4
+#!/usr/bin/python2.6
#
# CDDL HEADER START
#
diff --git a/usr/src/tools/scripts/hg-active.py b/usr/src/tools/scripts/hg-active.py
index 7e49a18db5..88394e98e5 100644
--- a/usr/src/tools/scripts/hg-active.py
+++ b/usr/src/tools/scripts/hg-active.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python2.4
+#!/usr/bin/python2.6
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2
diff --git a/usr/src/tools/scripts/mapfilechk.py b/usr/src/tools/scripts/mapfilechk.py
index 83d3d9d70c..9cf2000c7a 100644
--- a/usr/src/tools/scripts/mapfilechk.py
+++ b/usr/src/tools/scripts/mapfilechk.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python2.4
+#!/usr/bin/python2.6
#
# CDDL HEADER START
#