2 # --- T2-COPYRIGHT-NOTE-BEGIN ---
3 # T2 SDE: scripts/Create-FlatPriPatch
4 # Copyright (C) 2004 - 2021 The T2 SDE Project
6 # This Copyright note is generated by scripts/Create-CopyPatch,
7 # more information can be found in the files COPYING and README.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License version 2.
11 # --- T2-COPYRIGHT-NOTE-END ---
15 function create_pkg_patch
() {
18 sed -e 's,^\(\[P\] .* \)[0-9\.][0-9\.]*$,\1'$priority',' \
19 < package
/$pkg/${pkg#*/}.desc
> $tempfile
20 diff -u .
/package
/$pkg/${pkg#*/}.desc
$tempfile
27 other_desc
=$
(echo package
/*/$other/$other.desc
)
28 [ -e "$other_desc" ] ||
continue
29 counter
=$
(sed -n 's,^\(\[P\] .* \)\([0-9\.][0-9\.]*$\),\2,p' $other_desc)
33 counter
="${counter%?}.${counter#???}00"
34 create_pkg_patch
$pkg $counter
39 for pkg
in $
( scripts
/Create-PkgList
"$@" | cut
-f4,5 -d' ' |
tr ' ' / )
41 xcounter
="${counter%?}.${counter#???}00"
43 *t2-debug
) xcounter
=999.900 ;;
44 *t2-src
) xcounter
=999.800 ;;
45 *99-final) xcounter
=999.999 ;;
48 create_pkg_patch
$pkg $xcounter