mirror of https://github.com/CGAL/cgal
19 lines
506 B
Bash
19 lines
506 B
Bash
#!/bin/bash
|
|
|
|
#Will cd $1 and test package named $2
|
|
#to find out if it or one of its dependencies has changed in the current branch
|
|
|
|
DO_IGNORE=FALSE
|
|
cd $1
|
|
|
|
LIST_OF_FILES=$(git diff --name-only origin/master |cut -d/ -f1 |uniq |sort)
|
|
LIST_OF_DEPS=$(cat "$2/package_info/$ARG/dependencies")
|
|
echo "$LIST_OF_DEPS"
|
|
for flie in $LIST_OF_DEPS
|
|
do
|
|
[[ $LIST_OF_FILES =~ (^|[[:space:]])$flie($|[[:space:]]) ]] && return
|
|
done
|
|
echo "Package ignored because none of its dependencies has been modified."
|
|
DO_IGNORE=TRUE
|
|
|