Skip to content

Commit

Permalink
Improve Setup
Browse files Browse the repository at this point in the history
  • Loading branch information
PSchmiedmayer committed Jan 11, 2024
1 parent 5e64e19 commit 3165be1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Scripts/TEMPLATEREADME.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ SPDX-License-Identifier: MIT
# Spezi Template Application

This repository contains the Spezi Template Application.
The Spezi Template Application is using the [Spezi](https://github.com/StanfordSpezi/Spezi) ecosystem and builds on top of the [SSTA](https://github.com/StanfordSpezi/TA).
The Spezi Template Application is using the [Spezi](https://github.com/StanfordSpezi/Spezi) ecosystem and builds on top of the [{{SSTA}}](https://github.com/StanfordSpezi/TA).

> [!NOTE] 
> Do you want to learn more about the SSTA and how to use, extend, and modify this application? Check out the [SSTA documentation](stanfordspezi.github.io/SpeziTA/)
> Do you want to learn more about the {{SSTA}} and how to use, extend, and modify this application? Check out the [{{SSTA}} documentation](stanfordspezi.github.io/Spezi{{TA}}/)

## Spezi Template Application Features
Expand Down
9 changes: 5 additions & 4 deletions Scripts/create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -125,16 +125,17 @@ projectNameSpeziEscaped=$(sed 's:/:\\/:g' <<< "Spezi Template Application")
projectNameEscaped=$(sed 's:/:\\/:g' <<< "Template Application")
templateEscaped=$(sed 's:/:\\/:g' <<< "Template")
sstaEscaped=$(sed 's:/:\\/:g' <<< "SSTA")
taEscaped=$(sed 's:/:\\/:g' <<< "TA")
sstaEscaped=$(sed 's:/:\\/:g' <<< "{{SSTA}}")
taEscaped=$(sed 's:/:\\/:g' <<< "{{TA}}")
sstaFullEscaped=$(sed 's:/:\\/:g' <<< "Stanford Spezi Template Application")
taFullEscaped=$(sed 's:/:\\/:g' <<< "Template Application")
appNameEscaped=$(sed 's:/:\\/:g' <<< "$appName based on the $sstaEscaped")
newHeaderFileEscaped=$(sed 's:/:\\/:g' <<< "$appName based on the $sstaEscaped")
appNameEscaped=$(sed 's:/:\\/:g' <<< "$appName")
appNameNoSpacesEscaped=$(sed 's:/:\\/:g' <<< "$appNameNoSpaces")
find . -type f -not \( -path '*/.git/*' \) -not \( -path '*/Scripts/create.sh' \) -exec grep -Iq . {} \; -print | while read -r file; do
sed -i '' "s/${projectNameLowercaseEscaped}/${appNameLowerNoSpacesEscaped}/g" "$file" || echo "Failed to process $file"
sed -i '' "s/${headerFileEscaped}/${appNameEscaped}/g" "$file" || echo "Failed to process $file"
sed -i '' "s/${headerFileEscaped}/${newHeaderFileEscaped}/g" "$file" || echo "Failed to process $file"
sed -i '' "s/${projectNameNoSpacesEscaped}/${appNameNoSpacesEscaped}/g" "$file" || echo "Failed to process $file"
sed -i '' "s/${projectNameSpeziEscaped}/${appNameEscaped}/g" "$file" || echo "Failed to process $file"
sed -i '' "s/${projectNameEscaped}/${appNameEscaped}/g" "$file" || echo "Failed to process $file"
Expand Down

0 comments on commit 3165be1

Please sign in to comment.