From 203b2a8acce7b98fdc3c3eb7503e03270738d932 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Mon, 19 Feb 2007 14:02:27 -0500 Subject: [PATCH] Install context.py as a script --- koji/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/koji/Makefile b/koji/Makefile index c212b289..dc68c9c7 100644 --- a/koji/Makefile +++ b/koji/Makefile @@ -1,6 +1,7 @@ PYTHON=python PACKAGE = $(shell basename `pwd`) PYFILES = $(wildcard *.py) +PYSCRIPTS = context.py PYVER := $(shell $(PYTHON) -c 'import sys; print "%.3s" %(sys.version)') PYSYSDIR := $(shell $(PYTHON) -c 'import sys; print sys.prefix') PYLIBDIR = $(PYSYSDIR)/lib/python$(PYVER) @@ -17,4 +18,7 @@ install: for p in $(PYFILES) ; do \ install -m 644 $$p $(DESTDIR)/$(PKGDIR)/$$p; \ done + for p in $(PYSCRIPTS) ; do \ + chmod 0755 $(DESTDIR)/$(PKGDIR)/$$p; \ + done $(PYTHON) -c "import compileall; compileall.compile_dir('$(DESTDIR)/$(PKGDIR)', 1, '$(PYDIR)', 1)"