You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
465 B
28 lines
465 B
#!/bin/bash |
|
|
|
#set -x |
|
|
|
files=`.rider/changefiles.sh "*\.go$"` |
|
|
|
exitCode=$? |
|
if [[ ${exitCode} -ne 0 ]]; then |
|
echo ".rider/changefiles.sh fail" |
|
exit ${exitCode} |
|
fi |
|
|
|
pkgs="" |
|
for file in ${files} |
|
do |
|
pkg="${file%/*}" |
|
if [ $? -eq 0 ]; then |
|
if [[ "${pkgs}" = "" ]]; then |
|
pkgs="${pkg}" |
|
else |
|
pkgs="${pkgs}\n${pkg}" |
|
fi |
|
fi |
|
done |
|
echo -e "${pkgs}" > .rider/.pkgs |
|
pkgs=`sort .rider/.pkgs|uniq` |
|
|
|
echo -e "${pkgs}" |