Skip to content

Commit

Permalink
Move template files to their own folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Chopper1337 committed Nov 29, 2023
1 parent cf86668 commit 4bb9d94
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,18 75,18 @@ sed \
-e "s|{{month}}|$month|g" \
-e "s|{{year}}|$year|g" \
-e "s|{{date}}|$date|g" \
template.cfg > autoexec.cfg
./templates/template.cfg > autoexec.cfg

# Read the template_laptop.cfg file and substitute variable values
sed \
-e "s|{{sensitivity_laptop}}|$sensitivity_laptop|g" \
-e "s|{{sensitivity_laptop_opt}}|$sensitivity_laptop_opt|g" \
template_laptop.cfg > laptop.cfg
./templates/template_laptop.cfg > laptop.cfg

# Read the template_hvh.cfg file and substitute variable values
sed \
-e "s|{{sensitivity_hvh}}|$sensitivity_hvh|g" \
template_hvh.cfg > hvh.cfg
./templates/template_hvh.cfg > hvh.cfg

# Update README.md
sed \
Expand All @@ -102,6 102,6 @@ sed \
-e "s|{{monitor}}|$monitor|g" \
-e "s|{{gpu}}|$gpu|g" \
-e "s|{{cpu}}|$cpu|g" \
template.md > README.md
./templates/template.md > README.md

echo "Config generated successfully: autoexec.cfg"
8 changes: 4 additions & 4 deletions generateWin.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 46,7 @@ $date = $(Get-Date -Format "dd/MM/yy")


# Read the template.cfg file and substitute variable values
(Get-Content template.cfg)`
(Get-Content ./templates/template.cfg)`
-replace '{{sensitivity}}', $sensitivity `
-replace '{{sensitivity_opt}}', $sensitivity_opt `
-replace '{{maxfps}}', $maxfps `
Expand Down Expand Up @@ -76,17 76,17 @@ $date = $(Get-Date -Format "dd/MM/yy")
| Out-File -encoding ASCII autoexec.cfg

# Read the template_laptop.cfg file and substitute variable values
(Get-Content template_laptop.cfg)`
(Get-Content ./templates/template_laptop.cfg)`
-replace '{{sensitivity_laptop}}', $sensitivity_laptop `
-replace '{{sensitivity_laptop_opt}}', $sensitivity_laptop_opt `
| Out-File -encoding ASCII laptop.cfg

# Read the template_hvh.cfg file and substitute variable values
(Get-Content template_hvh.cfg)`
(Get-Content ./templates/template_hvh.cfg)`
-replace '{{sensitivity_hvh}}', $sensitivity_hvh `
| Out-File -encoding ASCII hvh.cfg

(Get-Content template.md)`
(Get-Content ./templates/template.md)`
-replace '{{yourname}}' , $yourname `
-replace '{{date}}', $date`
-replace '{{globalchat}}', $globalchat `
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 4bb9d94

Please sign in to comment.