Magellan Linux

Contents of /trunk/grub/patches/grub-2.00-alx-add-includedir-function.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2372 - (show annotations) (download)
Tue Jan 21 09:03:29 2014 UTC (10 years, 9 months ago) by niro
File size: 463 byte(s)
-adds includedir() to grub-mkconfig_lib
1 diff -Naur grub-2.00/util/grub-mkconfig_lib.in grub-2.00-includedir/util/grub-mkconfig_lib.in
2 --- grub-2.00/util/grub-mkconfig_lib.in 2014-01-20 18:43:16.034000000 +0000
3 +++ grub-2.00-includedir/util/grub-mkconfig_lib.in 2014-01-20 18:42:36.908000000 +0000
4 @@ -384,3 +384,16 @@
5 fi
6 }
7
8 +includedir()
9 +{
10 + local dir="$1"
11 + local i
12 +
13 + [ -d ${dir} ] || return 1
14 + for i in $(find ${dir} -type f | version_sort)
15 + do
16 + echo "Including ${i}"
17 + . ${i}
18 + done
19 +}
20 +