All pastes #1897311 Raw Edit

Miscellany

public text v1 · immutable
#1897311 ·published 2010-07-09 15:52 UTC
rendered paste body
Index: scripts.pro
===================================================================
--- scripts.pro	(revision 25298)
+++ scripts.pro	(working copy)
@@ -5,7 +5,7 @@
 TEMPLATE = app
 CONFIG -= moc qt
 
-QMAKE_COPY_DIR = sh ./cpsvndir
+QMAKE_COPY_DIR = MYTHPYTHON=$${PYTHON} sh ./cpsvndir
 win32:QMAKE_COPY_DIR = sh ./cpsimple
 
 installscripts.path = $${PREFIX}/share/mythtv
Index: cpsvndir
===================================================================
--- cpsvndir	(revision 25298)
+++ cpsvndir	(working copy)
@@ -46,7 +46,10 @@
 	mkdir -p "$DEST/$file"
     else
 	cp -pR "$file" "$DEST/$file"
-        chown -h $EUID:$EGID "$DEST/$file"
+	if [ ! -z "$MYTHPYTHON" ]; then
+	    sed -i -e"s%#!/usr/bin/env python%#!/usr/bin/env ${MYTHPYTHON}%" "$DEST/$file"
+	fi
+	chown -h $EUID:$EGID "$DEST/$file"
 	chmod +r "$DEST/$file" &> /dev/null
     fi
 done