-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUILD_PROFILE: allow comma separated list
working towards 2.0, generalized and cleaned up cli interface.
- Loading branch information
Showing
38 changed files
with
337 additions
and
203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,17 @@ | ||
assert_BUILD_PROFILE_must_exist: | ||
test -f "${BUILD_PROFILES_DIR}/${BUILD_PROFILE}/setup.bash" | ||
assert_BUILD_PROFILES_must_exist: | ||
echo "${CCWS_BUILD_PROFILES}" | sed -e 's/,/\n/g' | xargs -I {} test -f "${BUILD_PROFILES_DIR}/{}/setup.bash" | ||
|
||
assert_BASE_BUILD_PROFILE_must_exist: | ||
test -f "${BUILD_PROFILES_DIR}/${BASE_BUILD_PROFILE}/setup.bash" | ||
assert_SECONDARY_BUILD_PROFILE_must_exist: | ||
test -f "${BUILD_PROFILES_DIR}/${CCWS_SECONDARY_BUILD_PROFILE}/setup.bash" | ||
|
||
assert_BUILD_PROFILE_must_not_exist: | ||
test ! -d "${BUILD_PROFILES_DIR}/${BUILD_PROFILE}" | ||
bp_new: | ||
test ! -d "${BUILD_PROFILES_DIR}/${CCWS_PRIMARY_BUILD_PROFILE}" | ||
${MAKE} assert_BUILD_PROFILES_must_exist BUILD_PROFILE=${CCWS_SECONDARY_BUILD_PROFILE} | ||
cp -R "${CCWS_DIR}/profiles/template_build" "${BUILD_PROFILES_DIR}/${CCWS_PRIMARY_BUILD_PROFILE}" | ||
find "${BUILD_PROFILES_DIR}/${CCWS_PRIMARY_BUILD_PROFILE}" -type f \ | ||
| xargs sed -i -e "s/@@BUILD_PROFILE@@/${CCWS_PRIMARY_BUILD_PROFILE}/g" -e "s/@@BASE_BUILD_PROFILE@@/${CCWS_SECONDARY_BUILD_PROFILE}/g" | ||
|
||
assert_EXEC_PROFILE_must_not_exist: | ||
ep_new: | ||
test ! -d "${EXEC_PROFILES_DIR}/${EXEC_PROFILE}" | ||
|
||
bp_new: assert_BUILD_PROFILE_must_not_exist | ||
${MAKE} assert_BUILD_PROFILE_must_exist BUILD_PROFILE=${BASE_BUILD_PROFILE} | ||
cp -R "${CCWS_DIR}/profiles/template_build" "${BUILD_PROFILES_DIR}/${BUILD_PROFILE}" | ||
find "${BUILD_PROFILES_DIR}/${BUILD_PROFILE}" -type f | xargs sed -i "s/@@BUILD_PROFILE@@/${BUILD_PROFILE}/g" | ||
find "${BUILD_PROFILES_DIR}/${BUILD_PROFILE}" -type f | xargs sed -i "s/@@BASE_BUILD_PROFILE@@/${BASE_BUILD_PROFILE}/g" | ||
|
||
ep_new: assert_EXEC_PROFILE_must_not_exist | ||
cp -R "${CCWS_DIR}/profies/template_exec" "${EXEC_PROFILES_DIR}/${EXEC_PROFILE}" | ||
find "${EXEC_PROFILES_DIR}/${EXEC_PROFILE}" -type f | xargs sed -i "s/@@EXEC_PROFILE@@/${EXEC_PROFILE}/g" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.