Skip to content

Commit

Permalink
scripts/clean: allow cleaning package for all projects
Browse files Browse the repository at this point in the history
  • Loading branch information
lrusak committed Apr 1, 2016
1 parent baecc66 commit afa5162
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion scripts/clean
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

. config/options $1

if [ ! -z "$1" ]; then
clean_package() {
printf "%${BUILD_INDENT}c ${boldred}CLEAN${endcolor} $1\n" ' '>&$SILENT_OUT
export BUILD_INDENT=$((${BUILD_INDENT:-1}+$BUILD_INDENT_SIZE))

Expand All @@ -43,4 +43,26 @@ if [ ! -z "$1" ]; then
fi
done
rm -f $STAMPS/$1/build_*
}

if [ "$1" = "--all" ]; then
if [ ! -z "$2" ]; then
for PROJECT in $(ls -1 projects); do
for archfile in projects/$PROJECT/linux/linux.*.conf ; do
if [ ! -f "$archfile" ]; then
for archfile in projects/$PROJECT/linux/*/linux.*.conf ; do
archfile=$archfile
done
fi
echo $archfile
ARCH=`echo $archfile | sed -n '$s/\.conf//;$s/.*\.//p'`
PROJECT=$PROJECT ARCH=$ARCH ./scripts/clean $2
done
done
fi
else
if [ ! -z "$1" ]; then
clean_package $1
fi
fi

0 comments on commit afa5162

Please sign in to comment.