Skip to content
Snippets Groups Projects
Commit b5e5caa7 authored by Tim Niemeyer's avatar Tim Niemeyer Committed by Steffen Pankratz
Browse files

buildscript: allow feed without url


Signed-off-by: default avatarTim Niemeyer <tim.niemeyer@mastersword.de>
Reviewed-by: default avatarSteffen Pankratz <kratz00@gmx.de>
parent ae16b107
No related branches found
No related tags found
No related merge requests found
...@@ -89,22 +89,24 @@ get_source() { ...@@ -89,22 +89,24 @@ get_source() {
local URL=${FEED[1]} local URL=${FEED[1]}
local REV=${FEED[2]} local REV=${FEED[2]}
checkout_git "$NAME" "$URL" "$REV" if [ -n "$URL" ] && [ -n "$REV" ]; then
checkout_git "$NAME" "$URL" "$REV"
# Patches for feeds could be stored in known directories like build_patches/$NAME/
# That way multiple patches for one feed could be supported # Patches for feeds could be stored in known directories like build_patches/$NAME/
count=3 # That way multiple patches for one feed could be supported
while [ "x${FEED[count]}" != "x" ] count=3
do while [ "x${FEED[count]}" != "x" ]
local PATCH=${FEED[count]} do
if [ ! -z "$PATCH" ] ; then local PATCH=${FEED[count]}
echo "Patching $PATCH" if [ ! -z "$PATCH" ] ; then
git -C "$NAME" am --whitespace=nowarn "$PATCH" echo "Patching $PATCH"
else git -C "$NAME" am --whitespace=nowarn "$PATCH"
echo "Warning, $PATCH not found." else
fi echo "Warning, $PATCH not found."
count=$(( count + 1 )) fi
done count=$(( count + 1 ))
done
fi
done done
cd .. # packages cd .. # packages
...@@ -278,8 +280,12 @@ clean() { ...@@ -278,8 +280,12 @@ clean() {
FEED=("${!FEED}") FEED=("${!FEED}")
local NAME=${FEED[0]} local NAME=${FEED[0]}
local URL=${FEED[1]}
local REV=${FEED[2]}
/bin/rm -rf src/packages/"$NAME" if [ -n "$URL" ] && [ -n "$REV" ]; then
/bin/rm -rf src/packages/"$NAME"
fi
done done
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment