Commit 1eee5ca0 authored by Andreas Tille's avatar Andreas Tille
Browse files

Catch more files with broken encoding

parent aca5e9c8
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
Description: Replace invalid encoding of copyright symbol which makes build fail in Java 9
   May be this can be done also in d/rules by sed expression instead of a patch.
   There is an example for those files that are not catched by this patch
Bug-Debian: https://bugs.debian.org/893303
Author: Andreas Tille <tille@debian.org>
Last-Update: Sun, 18 Mar 2018 07:25:07 +0100
+5 −0
Original line number Diff line number Diff line
@@ -15,6 +15,11 @@ override_dh_auto_build:
	#Make this directory on build because GIT won't let you commit an empty
	#directory
	mkdir -p lib
	# Fix broken encodings that were not catched in fix_invalid_encoding.patch
	for utf16 in `find . -name "*.java" -exec file \{\} \; | grep "ISO-8859 text" | sed 's/: .*//'` ; do \
		echo "Fixing ISO-8859 encoding of $$utf16" ; \
		sed -i '/^Copyright/{;N;s/Copyright.*1999 CERN - European Organization for Nuclear Research/Copyright (c) 1999 CERN - European Organization for Nuclear Research/;}' $$utf16; \
	done
	ant -Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5 build

override_dh_installdocs: