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