about summary refs log tree commit diff
path: root/pkgs/applications/version-management/src/path.patch
blob: 05e643e9e0ffc23ad48ad2cf50a00426480a7b23 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
diff -Naur src-0.12-orig/src src-0.12/src
--- src-0.12-orig/src	2014-11-21 08:19:59.000000000 -0500
+++ src-0.12/src	2014-11-21 15:54:54.598113846 -0500
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!@python@/bin/python
 #
 # src - simple revision control.
 #
@@ -58,6 +58,8 @@
 
 import sys, os, subprocess, time, calendar, stat, glob, shutil, hashlib
 
+os.environ['PATH'] = "@rcs@/bin:@git@/bin:" + os.environ['PATH']
+
 version="0.12"
 
 def rfc3339(t):
diff -Naur src-0.12-orig/srctest src-0.12/srctest
--- src-0.12-orig/srctest	2014-11-21 08:12:00.000000000 -0500
+++ src-0.12/srctest	2014-11-21 15:58:31.370500990 -0500
@@ -12,7 +12,7 @@
 
 # Set the PATH to include the current directory, so the repository
 # head version of src can always be tested.
-PATH="$(pwd)":$PATH
+PATH="$(pwd)":@git@/bin:$PATH
 
 trap "rm -fr $SANDBOX" 0 1 2 15