3 # --- T2-COPYRIGHT-NOTE-BEGIN ---
4 # T2 SDE: scripts/Create-DescPatch
5 # Copyright (C) 2004 - 2023 The T2 SDE Project
6 # Copyright (C) 1998 - 2003 ROCK Linux Project
8 # This Copyright note is generated by scripts/Create-CopyPatch,
9 # more information can be found in the files COPYING and README.
11 # This program is free software; you can redistribute it and/or modify
12 # it under the terms of the GNU General Public License version 2.
13 # --- T2-COPYRIGHT-NOTE-END ---
15 if [ "$1" = "-repository" ]; then
17 for x
in package
/$y/[a-z0-9
]*; do $0 ${x##*/}; done
22 if [ "$1" != "${1#-}" -o $# -eq 0 ]; then
23 echo "Usage: $0 <package-names>"
24 echo "or $0 -repository <repository-names>"
30 for pdir
in package
/*/$package; do
31 [ "$lastpdir" ] && echo "$package: Found dup: $pdir $lastpdir"
35 if [ -f $pdir/$package.desc
]; then
39 if [ "$line" = "--" -a "$nl" = 0 ]; then
42 if [ "${line#\[}" != "$line" ]; then
44 x
="`echo $x | tr -d '[]'`"
45 grep "^\[$x\]" $pdir/$package.desc
&& nl=0
48 done < misc
/share
/PKG-DESC-FORMAT
49 if [ "$nl" = 0 ]; then echo; fi
50 grep "^\[X" $pdir/$package.desc
&& echo
52 diff -u .
/$pdir/$package.desc
$tempfn