blob: 0359907b36f0478698adba8f6ff59162fb073c9d [file] [log] [blame]
Joey Armstrongf128de82023-09-08 17:05:18 -04001#!/bin/bash
Joey Armstrongfedf45e2023-09-20 11:40:01 -04002## -----------------------------------------------------------------------
3## Intent: This script ca
4## -----------------------------------------------------------------------
Joey Armstrongf128de82023-09-08 17:05:18 -04005
6set -euo pipefail
7
Joey Armstrongfedf45e2023-09-20 11:40:01 -04008[[ -d makefiles ]] || { echo "ERROR: makefiles/ not found"; exit 1; }
9
10# git rm -fr makefiles
11
Joey Armstrongf128de82023-09-08 17:05:18 -040012mkdir -p makefiles
13pushd makefiles || { echo "ERROR: pushd makefiles failed"; exit 1; }
14
Joey Armstrongfedf45e2023-09-20 11:40:01 -040015echo '** Adding repo:onf-make (library makefiles) as a submodule'
Joey Armstrongf128de82023-09-08 17:05:18 -040016git submodule add 'https://github.com/opencord/onf-make.git' onf-lib
17
Joey Armstrongfedf45e2023-09-20 11:40:01 -040018echo '** Ignore local onf-make edits'
Joey Armstrongf128de82023-09-08 17:05:18 -040019echo 'onf-lib' >> .gitignore
Joey Armstrongf128de82023-09-08 17:05:18 -040020
21cp ../makefiles_include_mk.ex include.mk
22
Joey Armstrongfedf45e2023-09-20 11:40:01 -040023echo '** Create project specific directory makefiles/local'
Joey Armstrongf128de82023-09-08 17:05:18 -040024mkdir -p local
25touch local/include.mk
Joey Armstrongf128de82023-09-08 17:05:18 -040026
27popd || { echo "ERROR: popd makefiles failed"; exit 1; }
28
Joey Armstrongfedf45e2023-09-20 11:40:01 -040029if false; then
30 git add makefiles/.gitignore
31 git add makefiles/include.mk
32 git add makefiles/local/include.mk
33
34# git add makefiles
35
Joey Armstrongf128de82023-09-08 17:05:18 -040036# [EOF]