common: remove unneccessary 'source's; move extglob.sh to install

This commit is contained in:
Enno Boland 2015-11-18 10:00:56 +01:00
parent ef24b7b7cc
commit 18e288fd2c
4 changed files with 16 additions and 21 deletions

View file

@ -0,0 +1,15 @@
# This provides the extglob function to expand wildcards in the destdir
expand_destdir() {
local glob_list= result= glob= file=
for glob; do
glob_list+=" $DESTDIR/$glob"
done
shopt -s extglob
for file in $glob_list; do
result+=" ${file#$DESTDIR/}"
done
shopt -u extglob
echo $result
}

View file

@ -1,17 +0,0 @@
# This provides the extglob function to expand wildcards in the destdir
expand_destdir() {
local glob_list= result= glob= file=
for glob; do
glob_list+=" $DESTDIR/$glob"
done
shopt -s extglob
for file in $glob_list; do
result+=" ${file#$DESTDIR/}"
done
shopt -u extglob
echo $result
}

View file

@ -0,0 +1 @@
../install/extglob.sh