scripts/unpack: force rebuild on scripts/* change

This commit is contained in:
Stefan Saraev 2013-12-12 21:20:19 +02:00
parent 88636d5472
commit 275542d635

View File

@ -56,9 +56,10 @@ for i in $BUILD/$1-*; do
break
fi
done
# trigger unpack / full rebuild on any patch change
for patch in $PKG_DIR/patches/* $PKG_DIR/patches.upstream/*; do
if [ -f "$patch" -a "$patch" -nt "$i/.openelec-unpack" ]; then
# trigger unpack / full rebuild on any patch / script / etc.. change
# TODO: rewwork $PKG_DIR/scripts -> $PKG_DIR/filesystem/....
for file in $PKG_DIR/{patches,patches.upstream,scripts}/* ; do
if [ -f "$file" -a "$file" -nt "$i/.openelec-unpack" ]; then
CLEAN_SOURCE=yes
break
fi