1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../sloccount/tail-head.patch
5 # Copyright (C) 2004 - 2005 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
15 # --- T2-COPYRIGHT-NOTE-END ---
17 This changes are needed for the new head and tail argument specification as
20 - Rene Rebe <rene@t2-project.org>
22 diff -ur sloccount-2.26/compute_sloc_lang sloccount-2.26-fixed/compute_sloc_lang
23 --- sloccount-2.26/compute_sloc_lang 2004-08-01 05:02:54.000000000 +0200
24 +++ sloccount-2.26-fixed/compute_sloc_lang 2005-07-20 10:02:13.000000000 +0200
26 *) ${language}_count -f ${language}_list.dat > ${language}_outfile.dat
29 - tail -1 < ${language}_outfile.dat
30 + tail -n 1 < ${language}_outfile.dat
33 rm -f ${language}_outfile.dat
34 diff -ur sloccount-2.26/redo_licenses sloccount-2.26-fixed/redo_licenses
35 --- sloccount-2.26/redo_licenses 2004-08-01 05:10:31.000000000 +0200
36 +++ sloccount-2.26-fixed/redo_licenses 2005-07-20 10:03:03.000000000 +0200
41 - specfile=`cat ${builddir}/ORIGINAL_SPEC_FILE | head -1`
42 + specfile=`cat ${builddir}/ORIGINAL_SPEC_FILE | head -n 1`
43 specfile=${SPECS}/$specfile
44 echo "builddir=${builddir}, specfile=${specfile}"
45 /root/extract_license "$builddir" "$specfile" > ${builddir}/PROGRAM_LICENSE
46 - license=`cat ${builddir}/PROGRAM_LICENSE | head -1`
47 + license=`cat ${builddir}/PROGRAM_LICENSE | head -n 1`