* updated libkdcraw (21.12.1 -> 21.12.2), untested
[t2-trunk.git] / scripts / Create-DescPatch
blob6bf75e3edd1fe404f11fb0e7592d80b6e14754f3
1 #!/bin/bash
3 # --- T2-COPYRIGHT-NOTE-BEGIN ---
4 # This copyright note is auto-generated by scripts/Create-CopyPatch.
5 #
6 # T2 SDE: scripts/Create-DescPatch
7 # Copyright (C) 2004 - 2020 The T2 SDE Project
8 # Copyright (C) 1998 - 2003 ROCK Linux Project
9 #
10 # More information can be found in the files COPYING and README.
12 # This program is free software; you can redistribute it and/or modify
13 # it under the terms of the GNU General Public License as published by
14 # the Free Software Foundation; version 2 of the License. A copy of the
15 # GNU General Public License can be found in the file COPYING.
16 # --- T2-COPYRIGHT-NOTE-END ---
18 if [ "$1" = "-repository" ]; then
19 shift; for y; do
20 for x in package/$y/[a-z0-9]*; do $0 ${x##*/}; done
21 done
22 exit 0
25 if [ "$1" != "${1#-}" -o $# -eq 0 ]; then
26 echo "Usage: $0 <package-names>"
27 echo "or $0 -repository <repository-names>"
28 exit 1
31 for package; do
32 lastpdir=""
33 for pdir in package/*/$package; do
34 [ "$lastpdir" ] && echo "$package: Found dup: $pdir $lastpdir"
35 lastpdir="$pdir"
36 done
38 if [ -f $pdir/$package.desc ]; then
39 tempfn=`mktemp`
40 { echo; nl=0
41 while read line; do
42 if [ "$line" = "--" -a "$nl" = 0 ]; then
43 echo; nl=1
45 if [ "${line#\[}" != "$line" ]; then
46 for x in $line; do
47 x="`echo $x | tr -d '[]'`"
48 grep "^\[$x\]" $pdir/$package.desc && nl=0
49 done
51 done < misc/share/PKG-DESC-FORMAT
52 if [ "$nl" = 0 ]; then echo; fi
53 grep "^\[X" $pdir/$package.desc && echo
54 } > $tempfn
55 diff -u ./$pdir/$package.desc $tempfn
56 rm -f $tempfn
58 done