|
@ -2,8 +2,6 @@ |
|
|
|
|
|
|
|
|
repoRoot=$(git rev-parse --show-toplevel) |
|
|
repoRoot=$(git rev-parse --show-toplevel) |
|
|
listFilesToSubstitute=$(find -name *.gitsubstitute) |
|
|
listFilesToSubstitute=$(find -name *.gitsubstitute) |
|
|
listStaticPathFiles=$(git grep -lr --untracked $repoRoot) |
|
|
|
|
|
listStagedFiles=$(git diff --staged --name-only) |
|
|
|
|
|
|
|
|
|
|
|
staticPathSubstitution="\$\$\${GITSUBSTITUTE_REPO_ROOT}" |
|
|
staticPathSubstitution="\$\$\${GITSUBSTITUTE_REPO_ROOT}" |
|
|
|
|
|
|
|
@ -14,11 +12,3 @@ for entryFileToSubstitute in $listFilesToSubstitute; do |
|
|
fileContent=$(<$fullPath) |
|
|
fileContent=$(<$fullPath) |
|
|
echo "${fileContent//${staticPathSubstitution}/${repoRoot}}" > "${fullPathSubstitute}" |
|
|
echo "${fileContent//${staticPathSubstitution}/${repoRoot}}" > "${fullPathSubstitute}" |
|
|
done |
|
|
done |
|
|
|
|
|
|
|
|
mv hw_platform/platform.tcl TMP1 |
|
|
|
|
|
mv hw_platform/platform.tcl.gitsubstitute TMP2 |
|
|
|
|
|
rm -rf hw_platform |
|
|
|
|
|
mkdir hw_platform |
|
|
|
|
|
mv TMP1 hw_platform/platform.tcl |
|
|
|
|
|
mv TMP2 hw_platform/platform.tcl.gitsubstitute |
|
|
|
|
|
xsct hw_platform/platform.tcl |
|
|
|