Skip to content

Commit c876cdc

Browse files
authored
chore(allow-partial-builds.sh): New script to set up build container to do partial builds. (#484)
* Minor Change * Better user messages
1 parent 3ecc35d commit c876cdc

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

CONTRIBUTING.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ documentation, we greatly value feedback and contributions from our community.
66
Please read through this document before submitting any issues or pull requests to ensure we have all the necessary
77
information to effectively respond to your bug report or contribution.
88

9-
109
## Reporting Bugs/Feature Requests
1110

1211
We welcome you to use the GitHub issue tracker to report bugs or suggest features.

deployment/allow-partial-builds.sh

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/bin/bash
2+
3+
result=${PWD##*/} # to assign to a variable
4+
5+
(return 0 2>/dev/null) && sourced=1 || sourced=0
6+
7+
if [ $sourced -ne 1 ]
8+
then
9+
echo
10+
echo
11+
echo 'Error - You must run this script with the source directive:'
12+
echo
13+
echo ' source ./deployment/allow-partial-builds.sh'
14+
echo
15+
elif [ $result != 'aws-solutions-constructs' ]
16+
then
17+
echo
18+
echo
19+
echo 'Error - You must run this script from the aws-solutions-constructs folder.'
20+
echo
21+
else
22+
./deployment/align-version.sh
23+
cd source
24+
export PATH=$(npm bin):$PATH
25+
cd patterns/@aws-solutions-constructs
26+
fi

0 commit comments

Comments
 (0)