[SM-Commit] PERFORCE change 78600 by Arwed von Merkatz for review
Perforce Review Daemon
p4review at smee.org
Fri Apr 28 13:50:04 EDT 2006
Change 78600 by arwed_von_merkatz at arwed-Otherland on 2006/04/28 18:46:15
backwards compatibility for depends/optional_depends -sub
Affected files ...
... //sgl/grimoires/test/ChangeLog#264 integrate
... //sgl/grimoires/test/libcompat#4 integrate
Differences ...
==== //sgl/grimoires/test/ChangeLog#264 (text) ====
@@ -1,5 +1,7 @@
2006-04-28 Arwed v. Merkatz <v.merkatz at gmx.net>
- * libcompat: added fast_up_depends function, bug #10661
+ * libcompat: added fast_up_depends function, bug #10661,
+ added dropping of '-sub SUB_DEPENDS' parameter for depends and
+ optional_depends, bug #10802
2006-04-27 Alex S. Tsamutali <astsmtl at gmail.com>
* libs/libstatgrab: new spell, cross platform system stats access library
==== //sgl/grimoires/test/libcompat#4 (xtext) ====
@@ -1,7 +1,19 @@
# ignore sub_depends if not supported by sorcery
declare -f sub_depends &> /dev/null ||
-function sub_depends() {
- :
+{
+ function sub_depends() {
+ :
+ }
+
+ function depends() {
+ [[ $1 == "-sub" ]] && shift 2
+ real_depends "$@"
+ }
+
+ function optional_depends() {
+ [[ $1 == "-sub" ]] && shift 2
+ real_optional_depends "$@"
+ }
}
# ignore force_depends if not supported by sorcery
More information about the SM-Commit
mailing list