File: build.patch

package info (click to toggle)
cup 0.11b-20160615-3
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 716 kB
  • sloc: java: 5,014; xml: 212; makefile: 15; sh: 3
file content (50 lines) | stat: -rw-r--r-- 1,645 bytes parent folder | download | duplicates (2)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
From: Markus Koschany <apo@debian.org>
Date: Sun, 30 Sep 2018 21:42:15 +0200
Subject: build

Avoid build-depending on Git.
Forwarded: not-needed
---
 build.xml | 22 +---------------------
 1 file changed, 1 insertion(+), 21 deletions(-)

diff --git a/build.xml b/build.xml
index 91bd60c..d464a96 100644
--- a/build.xml
+++ b/build.xml
@@ -21,26 +21,6 @@
     <mkdir dir="${dist}" />
     <loadfile property="cupversion" srcFile="version.txt" failonerror="false" />
     <property name="cupversion" value="custombuild" unless:set="cupversion"/>
-    <exec executable="git" outputproperty="gitversion">
-      <arg value="log"/>
-      <arg value="-1"/>
-      <arg value="--format=%h"/>
-    </exec>
-    <exec executable="git" outputproperty="changed">
-      <arg value="status"/>
-      <arg value="--porcelain"/>
-      <redirector>
-	<outputfilterchain>
-	<linecontainsregexp>
-	  <regexp pattern='^M.*'/>
-	</linecontainsregexp>
-	<tokenfilter>
-	  <replaceregex pattern=".*" replace="modifications based on "/>
-	</tokenfilter>
-	</outputfilterchain>
-	</redirector>
-    </exec>
-    <property name="svnversion">${changed}${gitversion}</property>
   </target>
 
   <property environment="env" />
@@ -79,7 +59,7 @@
     <copy todir="${java}"><fileset dir="${src}"></fileset></copy>
     <replace file="${java}/java_cup/version.java"
        token="+ version_str"
-       value='+ "v0.11b ${cupversion} (GIT ${svnversion})"'>
+       value='+ "v0.11b ${cupversion}"'>
     </replace>
     <javac srcdir="${java}" destdir="${classes}" verbose="off" listfiles="off" debug="on" source="1.8" target="1.8">
       <classpath refid="libraries"/>