-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathUpdateDotNetCoreProjectFiles.sh
More file actions
executable file
·53 lines (40 loc) · 1.83 KB
/
UpdateDotNetCoreProjectFiles.sh
File metadata and controls
executable file
·53 lines (40 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
# This script makes sure the most up to date versions of .Net Core files are in the DotNetEnablement folder,
# to be used for .Net conversion.
# To run this script on a Windows machine:
# your-root-project-path/UpdateDotNetCoreProjectFiles.sh your-root-project-path
# To run this script on a Macbook:
# First (one time only per machine) run this:
# chmod u+x your-root-project-path/UpdateDotNetCoreProjectFiles.sh
# Then to run the script each time:
# your-root-project-path/UpdateDotNetCoreProjectFiles.sh your-root-project-path
# Arguments are as follows:
# $1 is used to set path to root of project
# eg C:/Reconciliate
project_path=$1
echo "project path is $project_path"
echo "get to the correct location"
cd $project_path
backup_folder="./DotNetCoreEnablement/DotNetCoreFiles"
echo "files will be copied to $backup_folder"
# Console project
echo "Console: create backup of proj file"
cp ./Console/Console.csproj "$backup_folder"
# ConsoleCatchallTests project
echo "ConsoleCatchallTests: create backup of proj file"
cp ./ConsoleCatchallTests/ConsoleCatchallTests.csproj "$backup_folder"
# ExcelLibrary project
echo "ExcelLibrary: create backup of proj file"
cp ./ExcelLibrary/ExcelLibrary.csproj "$backup_folder"
# ExcelIntegrationTests project
echo "ExcelIntegrationTests: create backup of proj file"
cp ./ExcelIntegrationTests/ExcelIntegrationTests.csproj "$backup_folder"
# Interfaces project
echo "Interfaces: create backup of proj file"
cp ./Interfaces/Interfaces.csproj "$backup_folder"
# SpreadsheetRepoFactoryFactory.cs
echo "SpreadsheetRepoFactoryFactory: create backup of SpreadsheetRepoFactoryFactory.cs"
cp ./Console/Reconciliation/Spreadsheets/SpreadsheetRepoFactoryFactory.cs "$backup_folder"
# Reconciliate.sln
echo "Solution: create backup of Reconciliate.sln"
cp ./Reconciliate.sln "$backup_folder"