work around more license formatting issues

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack 2016-04-05 14:16:13 +01:00
parent 957746875d
commit 8c415a0b2f
2 changed files with 18 additions and 14 deletions

1
licensing/.dockerignore Normal file
View File

@ -0,0 +1 @@
output/

View File

@ -34,21 +34,24 @@ do
if [ ! -d "$srcdir"/$pkgname-$pkgver ]
then
mkdir -p "$srcdir"/$pkgname-$pkgver
while read f
while read ff
do
if [ -n "$(echo $f | tr -d '[[:space:]]')" ]
then
f=$(echo $f | sed 's/^.*:://')
printf "looking for source for: $f\n"
if [ -f "$f" ]
then
cp -a $f "$srcdir"/$pkgname-$pkgver/
else
cd "$srcdir"/$pkgname-$pkgver && \
wget $f || fail "Cannot retrieve $f" && \
cd -
fi
fi
for f in $ff
do
if [ -n "$(echo $f | tr -d '[[:space:]]')" ]
then
f=$(echo $f | sed 's/^.*:://')
printf "looking for source for: $f\n"
if [ -f "$f" ]
then
cp -a $f "$srcdir"/$pkgname-$pkgver/
else
cd "$srcdir"/$pkgname-$pkgver && \
wget $f || fail "Cannot retrieve $f" && \
cd -
fi
fi
done
done <<< "$source"
fi
)