Merge pull request #3001 from Gottox/conf_files-glob
globs files defined in conf_files=
This commit is contained in:
commit
bd307bb9e2
5 changed files with 31 additions and 47 deletions
18
common/environment/install/extglob.sh
Normal file
18
common/environment/install/extglob.sh
Normal file
|
@ -0,0 +1,18 @@
|
|||
# This provides the extglob function to expand wildcards in the destdir
|
||||
|
||||
expand_destdir() {
|
||||
local result= glob= file=
|
||||
|
||||
(
|
||||
set -f
|
||||
for glob in $@; do
|
||||
files=$(echo "${PKGDESTDIR}/${glob}")
|
||||
set +f
|
||||
for file in $files; do
|
||||
result+="${blank}${file#$PKGDESTDIR/}"
|
||||
blank=" "
|
||||
done
|
||||
done
|
||||
echo "$result"
|
||||
)
|
||||
}
|
1
common/environment/pkg/extglob.sh
Symbolic link
1
common/environment/pkg/extglob.sh
Symbolic link
|
@ -0,0 +1 @@
|
|||
../install/extglob.sh
|
Loading…
Add table
Add a link
Reference in a new issue