forked from dotnet/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgetlist.sh
25 lines (20 loc) · 906 Bytes
/
getlist.sh
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
#!/bin/bash
# =================================
# Script used to obtain a list of
# project files that are used for
# restore and compilation.
#
# Last Update: 08/04/2016
# Author: Den Delimarsky
# =================================
# For logging purposes, create a folder that can uniquely identify the build
mkdir $BUILD_TAG
# For reference purposes, get the local home path that will be used
# as the root for file-related operations.
HPATH=$PWD
echo $HPATH
# For diagnostic purposes, log the information about the dotnet environment.
dotnet --info | tee $HPATH/global.projects --append $HPATH/$BUILD_TAG/buildlog.txt
# Get the list of global and single project files
find $HPATH/samples/core -name "global.json" |& tee $HPATH/global.projects --append $HPATH/$BUILD_TAG/buildlog.txt
find $HPATH/samples/core -name "project.json" |& tee $HPATH/single.projects --append $HPATH/$BUILD_TAG/buildlog.txt