Initial commit

This commit is contained in:
Donny
2019-04-22 20:46:32 +08:00
commit 49ab8aadd1
25441 changed files with 4055000 additions and 0 deletions

28
.rider/changepkgs.sh Normal file
View File

@@ -0,0 +1,28 @@
#!/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}"