--- similarity-tester-2.70.orig/Makefile +++ similarity-tester-2.70/Makefile @@ -38,35 +38,17 @@ # Locations DIR = /home/dick -BINDIR = $(DIR)/bin.`$(DIR)/bin/arch` -MAN1DIR = $(DIR)/man/man1 +BINDIR = $(PWD)/debian/similarity-tester/usr/bin +MAN1DIR = $(PWD)/debian/similarity-tester/usr/share/man/man1 # Commands -COPY = cp -p +COPY = install EXE = # LEX = flex LN = ln ZIP = zip -o ################################################################ -# For MSDOS + MinGW - -SYSTEM = MSDOS -SUBSYSTEM = MinGW - -# Locations -DIR = C:/BIN -BINDIR = C:/BIN -MAN1DIR = C:/BIN - -# Commands (cp required, since xcopy cannot handle forward slashes) -COPY = cp -p -EXE = .exe -LEX = flex -LN = ln -ZIP = zip -o - -################################################################ # General, compiling: CC = gcc -D$(SYSTEM) -D$(SUBSYSTEM) LINT = lint -ansi -D$(SYSTEM) -D$(SUBSYSTEM) @@ -84,8 +66,8 @@ # Compiler Options MEMORY = -DMEMLEAK -DMEMCLOBBER -CFLAGS = $(MEMORY) -O4 -LIBFLAGS = # +CFLAGS = $(MEMORY) -O4 $(shell dpkg-buildflags --get CPPFLAGS) $(shell dpkg-buildflags --get CFLAGS) +LIBFLAGS = $(shell dpkg-buildflags --get LDFLAGS) LINTFLAGS = $(MEMORY) -h# -X # Debugging @@ -224,7 +206,7 @@ SIM_C_OBJ = $(SIM_OBJ) $(ALG_OBJ) $(CLANG_OBJ) sim_c$(EXE): $(SIM_C_OBJ) - $(CC) $(SIM_C_OBJ) -o $@ + $(CC) $(LIBFLAGS) $(SIM_C_OBJ) -o $@ SIM_GRB += clang.c sim_c @@ -244,7 +226,7 @@ SIM_JAVA_OBJ = $(SIM_OBJ) $(ALG_OBJ) $(JAVALANG_OBJ) sim_java$(EXE): $(SIM_JAVA_OBJ) - $(CC) $(SIM_JAVA_OBJ) -o $@ + $(CC) $(LIBFLAGS) $(SIM_JAVA_OBJ) -o $@ SIM_GRB += javalang.c sim_java @@ -264,7 +246,7 @@ SIM_PASC_OBJ = $(SIM_OBJ) $(ALG_OBJ) $(PASCLANG_OBJ) sim_pasc$(EXE): $(SIM_PASC_OBJ) - $(CC) $(SIM_PASC_OBJ) -o $@ + $(CC) $(LIBFLAGS) $(SIM_PASC_OBJ) -o $@ SIM_GRB += pascallang.c sim_pasc @@ -284,7 +266,7 @@ SIM_M2_OBJ = $(SIM_OBJ) $(ALG_OBJ) $(M2LANG_OBJ) sim_m2$(EXE): $(SIM_M2_OBJ) - $(CC) $(SIM_M2_OBJ) -o $@ + $(CC) $(LIBFLAGS) $(SIM_M2_OBJ) -o $@ SIM_GRB += m2lang.c sim_m2 @@ -304,7 +286,7 @@ SIM_LISP_OBJ = $(SIM_OBJ) $(ALG_OBJ) $(LISPLANG_OBJ) sim_lisp$(EXE): $(SIM_LISP_OBJ) - $(CC) $(SIM_LISP_OBJ) -o $@ + $(CC) $(LIBFLAGS) $(SIM_LISP_OBJ) -o $@ SIM_GRB += lisplang.c sim_lisp @@ -324,7 +306,7 @@ SIM_MIRA_OBJ = $(SIM_OBJ) $(ALG_OBJ) $(MIRALANG_OBJ) sim_mira$(EXE): $(SIM_MIRA_OBJ) - $(CC) $(SIM_MIRA_OBJ) -o $@ + $(CC) $(LIBFLAGS) $(SIM_MIRA_OBJ) -o $@ SIM_GRB += miralang.c sim_mira @@ -344,7 +326,7 @@ SIM_TEXT_OBJ = $(SIM_OBJ) $(TEXTLANG_OBJ) sim_text$(EXE): $(SIM_TEXT_OBJ) - $(CC) $(SIM_TEXT_OBJ) -o $@ + $(CC) $(LIBFLAGS) $(SIM_TEXT_OBJ) -o $@ SIM_GRB += textlang.c sim_text --- similarity-tester-2.70.orig/option-i.inp +++ similarity-tester-2.70/option-i.inp @@ -1,5 +1,4 @@ pass1.c pass2.c -/ pass3.c -../teckel +/ --- similarity-tester-2.70.orig/debian/dirs +++ similarity-tester-2.70/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/share/man/man1 --- similarity-tester-2.70.orig/debian/docs +++ similarity-tester-2.70/debian/docs @@ -0,0 +1,2 @@ +README +TechnReport --- similarity-tester-2.70.orig/debian/links +++ similarity-tester-2.70/debian/links @@ -0,0 +1,7 @@ +usr/share/man/man1/similarity-tester.1.gz /usr/share/man/man1/sim_mira.1.gz +usr/share/man/man1/similarity-tester.1.gz /usr/share/man/man1/sim_java.1.gz +usr/share/man/man1/similarity-tester.1.gz /usr/share/man/man1/sim_lisp.1.gz +usr/share/man/man1/similarity-tester.1.gz /usr/share/man/man1/sim_m2.1.gz +usr/share/man/man1/similarity-tester.1.gz /usr/share/man/man1/sim_c.1.gz +usr/share/man/man1/similarity-tester.1.gz /usr/share/man/man1/sim_text.1.gz +usr/share/man/man1/similarity-tester.1.gz /usr/share/man/man1/sim_pasc.1.gz --- similarity-tester-2.70.orig/debian/control +++ similarity-tester-2.70/debian/control @@ -0,0 +1,16 @@ +Source: similarity-tester +Section: devel +Priority: extra +Maintainer: Michael Meskes +Build-Depends: debhelper (>= 7.0.50~), flex +Standards-Version: 3.9.3 +Homepage: http://dickgrune.com/Programs/similarity_tester + +Package: similarity-tester +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Find lexical similarities between files + Find lexical similarities in texts in C, Java, Pascal, Modula-2, Lisp, + Miranda and natural language. This can be used to detect potentially duplicated + code fragments in large software projects and to detect plagiarism in software + and text-based projects, educational and otherwise. --- similarity-tester-2.70.orig/debian/changelog +++ similarity-tester-2.70/debian/changelog @@ -0,0 +1,88 @@ +similarity-tester (2.70-1) unstable; urgency=low + + * New upstream version. + + -- Michael Meskes Wed, 05 Dec 2012 13:43:40 +0100 + +similarity-tester (2.69-1) unstable; urgency=low + + * New upstream version. + + -- Michael Meskes Fri, 12 Oct 2012 13:50:58 +0200 + +similarity-tester (2.67-1) unstable; urgency=low + + * New upstream version. + + -- Michael Meskes Wed, 11 Jul 2012 09:53:13 +0200 + +similarity-tester (2.62-1) unstable; urgency=low + + * New upstream version. (Closes: #676287) + * Updated watch file for new location. + * Bumped Standard-Version to 3.9.3, no changes needed. + + -- Michael Meskes Thu, 07 Jun 2012 12:33:50 +0200 + +similarity-tester (2.26-3) unstable; urgency=low + + * Bumped Standard-Version to 3.9.2, no changes needed. + * Added Homepage field to control file. (Closes: #655613) + + -- Michael Meskes Fri, 13 Jan 2012 08:54:05 +0100 + +similarity-tester (2.26-2) unstable; urgency=low + + * Made build process use correct directory settings. (Closes: #587710) + * Bumped Standard-Version to 3.9.0, no changes needed. + + -- Michael Meskes Thu, 01 Jul 2010 08:38:43 +0200 + +similarity-tester (2.26-1) unstable; urgency=low + + * New upstream version. + * Bumped Standard-Version to 3.8.4, no changes needed. + * Converted to debhelper 7. + * Added watch and source/format files. + + -- Michael Meskes Fri, 25 Jun 2010 10:27:50 +0200 + +similarity-tester (2.21-5) unstable; urgency=low + + * Recompiled against up-to-date version of the build chain. Old binary + didn't work correctly anymore. + * Bumped Standard-Version to 3.8.0, no changes needed. + + -- Michael Meskes Tue, 17 Jun 2008 10:29:50 +0200 + +similarity-tester (2.21-4) unstable; urgency=low + + * Bumped Standard-Version to 3.7.3, no changes needed. + + -- Michael Meskes Sat, 29 Dec 2007 13:31:13 +0100 + +similarity-tester (2.21-3) unstable; urgency=low + + * Fixed remaining lintian warnings. + + -- Michael Meskes Sat, 22 Dec 2007 17:51:41 +0100 + +similarity-tester (2.21-2) unstable; urgency=low + + * Argh, lost the license file during update. Added it again. + + -- Michael Meskes Mon, 03 Sep 2007 18:57:36 +0200 + +similarity-tester (2.21-1) unstable; urgency=low + + * New upstream version. + + -- Michael Meskes Thu, 30 Aug 2007 12:40:48 +0200 + +similarity-tester (2.19-1) unstable; urgency=low + + * Initial release + * Fixed language files to compile. + + -- Michael Meskes Thu, 23 Aug 2007 13:32:33 +0200 + --- similarity-tester-2.70.orig/debian/README.Debian +++ similarity-tester-2.70/debian/README.Debian @@ -0,0 +1,6 @@ +sim for Debian +-------------- + + + + -- Michael Meskes Thu, 23 Aug 2007 13:32:33 +0200 --- similarity-tester-2.70.orig/debian/copyright +++ similarity-tester-2.70/debian/copyright @@ -0,0 +1,49 @@ +This package was debianized by Michael Meskes on +Thu, 23 Aug 2007 13:32:33 +0200. + +It was downloaded from ftp://ftp.cs.vu.nl/pub/dick/similarity_tester. The +license file is also located under this URL, but not in the release which is +distributed as shar file. The Debian package does contain this license file. + +Upstream Author: + + Dick Grune + +Copyright: + + Copyright (c) 1986, 2007, Dick Grune, Vrije Universiteit, The Netherlands + +License: + + Redistribution and use in source and binary forms, + with or without modification, are permitted provided + that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + + * Neither the name of the Vrije Universiteit nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT + NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY + AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR + BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +The Debian packaging is Copyright (C) 2007-2010, Michael Meskes and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. + --- similarity-tester-2.70.orig/debian/compat +++ similarity-tester-2.70/debian/compat @@ -0,0 +1 @@ +7 --- similarity-tester-2.70.orig/debian/watch +++ similarity-tester-2.70/debian/watch @@ -0,0 +1,4 @@ +version=3 + +opts=uversionmangle=s/_/./ \ + http://www.dickgrune.com/Programs/similarity_tester/sim_(\d.*).zip --- similarity-tester-2.70.orig/debian/rules +++ similarity-tester-2.70/debian/rules @@ -0,0 +1,22 @@ +#!/usr/bin/make -f + +%: + dh $@ + +build: build-stamp +build-stamp: + dh build + touch build-stamp + +binary-arch: build +binary: binary-arch binary-indep + +override_dh_auto_build: + dh_auto_build -- test + +override_dh_install: + dh_install + mv $(CURDIR)/debian/similarity-tester/usr/share/man/man1/sim.1 $(CURDIR)/debian/similarity-tester/usr/share/man/man1/similarity-tester.1 + +override_dh_auto_clean: + $(MAKE) clean --- similarity-tester-2.70.orig/debian/source/format +++ similarity-tester-2.70/debian/source/format @@ -0,0 +1 @@ +1.0