 anduin revidoval tento gist 2 years ago. Přejít na revizi
                
                anduin revidoval tento gist 2 years ago. Přejít na revizi
                
                    1 file changed, 4 insertions, 9 deletions
init.sh
| @@ -9,16 +9,11 @@ find . -name *.csproj | xargs -I {} dotnet publish {} -r win-x64 -c Release --se | |||
| 9 | 9 | # Push all | |
| 10 | 10 | for dir1 in ./*; do | |
| 11 | 11 | if [ -d "$dir1" ]; then | |
| 12 | + | echo "Pushing $dir1" | |
| 12 | 13 | cd "$dir1" | |
| 13 | - | for dir2 in ./*; do | |
| 14 | - | if [ -d "$dir2" ]; then | |
| 15 | - | cd "$dir2" | |
| 16 | - | git add . | |
| 17 | - | git commit -m "Fix manhours badge link" | |
| 18 | - | git push | |
| 19 | - | cd .. | |
| 20 | - | fi | |
| 21 | - | done | |
| 14 | + | git add . | |
| 15 | + | git commit -m "Upgrade to .NET 8" | |
| 16 | + | git push | |
| 22 | 17 | # 返回到原始目录 | |
| 23 | 18 | cd .. | |
| 24 | 19 | fi | |
                
                
                
                     anduin revidoval tento gist 2 years ago. Přejít na revizi
                
                anduin revidoval tento gist 2 years ago. Přejít na revizi
                
                    1 file changed, 2 insertions, 3 deletions
init.sh
| @@ -1,12 +1,11 @@ | |||
| 1 | + | # Create solution. | |
| 1 | 2 | rm *.sln | |
| 2 | - | ||
| 3 | 3 | dotnet new sln | |
| 4 | - | ||
| 5 | 4 | find . -name *.csproj | xargs -I {} dotnet sln add {} | |
| 6 | 5 | ||
| 6 | + | # Build projects | |
| 7 | 7 | find . -name *.csproj | xargs -I {} dotnet publish {} -r win-x64 -c Release --self-contained | |
| 8 | 8 | ||
| 9 | - | ||
| 10 | 9 | # Push all | |
| 11 | 10 | for dir1 in ./*; do | |
| 12 | 11 | if [ -d "$dir1" ]; then | |
                
                
                
                     anduin revidoval tento gist 2 years ago. Přejít na revizi
                
                anduin revidoval tento gist 2 years ago. Přejít na revizi
                
                    1 file changed, 20 insertions, 1 deletion
init.sh
| @@ -4,4 +4,23 @@ dotnet new sln | |||
| 4 | 4 | ||
| 5 | 5 | find . -name *.csproj | xargs -I {} dotnet sln add {} | |
| 6 | 6 | ||
| 7 | - | find . -name *.csproj | xargs -I {} dotnet publish {} -r win-x64 -c Release --self-contained | |
| 7 | + | find . -name *.csproj | xargs -I {} dotnet publish {} -r win-x64 -c Release --self-contained | |
| 8 | + | ||
| 9 | + | ||
| 10 | + | # Push all | |
| 11 | + | for dir1 in ./*; do | |
| 12 | + | if [ -d "$dir1" ]; then | |
| 13 | + | cd "$dir1" | |
| 14 | + | for dir2 in ./*; do | |
| 15 | + | if [ -d "$dir2" ]; then | |
| 16 | + | cd "$dir2" | |
| 17 | + | git add . | |
| 18 | + | git commit -m "Fix manhours badge link" | |
| 19 | + | git push | |
| 20 | + | cd .. | |
| 21 | + | fi | |
| 22 | + | done | |
| 23 | + | # 返回到原始目录 | |
| 24 | + | cd .. | |
| 25 | + | fi | |
| 26 | + | done | |
                
                
                
                     anduin revidoval tento gist 2 years ago. Přejít na revizi
                
                anduin revidoval tento gist 2 years ago. Přejít na revizi
                
                    1 file changed, 7 insertions
init.sh(vytvořil soubor)
| @@ -0,0 +1,7 @@ | |||
| 1 | + | rm *.sln | |
| 2 | + | ||
| 3 | + | dotnet new sln | |
| 4 | + | ||
| 5 | + | find . -name *.csproj | xargs -I {} dotnet sln add {} | |
| 6 | + | ||
| 7 | + | find . -name *.csproj | xargs -I {} dotnet publish {} -r win-x64 -c Release --self-contained | |