OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.9 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../sloccount/tail-head.patch
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  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
  14. # version.
  15. # --- T2-COPYRIGHT-NOTE-END ---
  16. This changes are needed for the new head and tail argument specification as
  17. defined by POSIX.
  18. - Rene Rebe <rene@t2-project.org>
  19. diff -ur sloccount-2.26/compute_sloc_lang sloccount-2.26-fixed/compute_sloc_lang
  20. --- sloccount-2.26/compute_sloc_lang 2004-08-01 05:02:54.000000000 +0200
  21. +++ sloccount-2.26-fixed/compute_sloc_lang 2005-07-20 10:02:13.000000000 +0200
  22. @@ -53,7 +53,7 @@
  23. *) ${language}_count -f ${language}_list.dat > ${language}_outfile.dat
  24. ;;
  25. esac
  26. - tail -1 < ${language}_outfile.dat
  27. + tail -n 1 < ${language}_outfile.dat
  28. else
  29. rm -f ${language}_outfile.dat
  30. diff -ur sloccount-2.26/redo_licenses sloccount-2.26-fixed/redo_licenses
  31. --- sloccount-2.26/redo_licenses 2004-08-01 05:10:31.000000000 +0200
  32. +++ sloccount-2.26-fixed/redo_licenses 2005-07-20 10:03:03.000000000 +0200
  33. @@ -31,11 +31,11 @@
  34. cd $BUILD
  35. for builddir in *
  36. do
  37. - specfile=`cat ${builddir}/ORIGINAL_SPEC_FILE | head -1`
  38. + specfile=`cat ${builddir}/ORIGINAL_SPEC_FILE | head -n 1`
  39. specfile=${SPECS}/$specfile
  40. echo "builddir=${builddir}, specfile=${specfile}"
  41. /root/extract_license "$builddir" "$specfile" > ${builddir}/PROGRAM_LICENSE
  42. - license=`cat ${builddir}/PROGRAM_LICENSE | head -1`
  43. + license=`cat ${builddir}/PROGRAM_LICENSE | head -n 1`
  44. echo " $license"
  45. done