Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PortWINE
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mikhail Tergoev
PortWINE
Commits
ebef5618
Commit
ebef5618
authored
Nov 18, 2024
by
Vladislav
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
help_info moved to function
parent
3be53b3c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
20 deletions
+20
-20
help_info
data_from_portwine/scripts/help_info
+0
-18
start.sh
data_from_portwine/scripts/start.sh
+20
-2
No files found.
data_from_portwine/scripts/help_info
deleted
100755 → 0
View file @
3be53b3c
#!/usr/bin/env bash
files_from_autoinstall
=
$(
ls
"
${
PORT_SCRIPTS_PATH
}
/pw_autoinstall"
)
echo
-e
"
${
translations
[use]
}
: [--repair] [--reinstall] [--autoinstall]
--repair
${
translations
[Forces all scripts to be updated to a working state
(helps if PortProton is not working)]
}
--reinstall
${
translations
[Reinstalls PortProton and resets all settings to default]
}
--generate-pot
${
translations
[Creates a files with translations .pot and .po]
}
--debug
${
translations
[Debug scripts for PortProton
(saved log in]
}
$PORT_WINE_PATH
/scripts-debug.log)
--update
${
translations
[Check update scripts for PortProton]
}
--launch
${
translations
[Launches the application immediately, requires the path to the .exe file]
}
--edit-db
${
translations
[After the variable, the path to the .exe file is required and then the variables.
(List their variables and values for example PW_MANGOHUD=1 PW_VKBASALT=0, etc.)]
}
--autoinstall
${
translations
[--autoinstall and the name of what needs to be installed is given in the list below
:]
}
$(
echo
$files_from_autoinstall
|
awk
'{for (i = 1; i <= NF; i++) {if (i % 10 == 0) {print ""} printf "%s ", $i}}'
)
"
data_from_portwine/scripts/start.sh
View file @
ebef5618
...
...
@@ -372,8 +372,26 @@ fi
case
"
$1
"
in
--help
)
# shellcheck source=/dev/null
source
"
${
PORT_SCRIPTS_PATH
}
/help_info"
help_info
()
{
files_from_autoinstall
=
$(
ls
"
${
PORT_SCRIPTS_PATH
}
/pw_autoinstall"
)
echo
-e
"
${
translations
[use]
}
: [--repair] [--reinstall] [--autoinstall]
--repair
${
translations
[Forces all scripts to be updated to a working state
(helps if PortProton is not working)]
}
--reinstall
${
translations
[Reinstalls PortProton and resets all settings to default]
}
--generate-pot
${
translations
[Creates a files with translations .pot and .po]
}
--debug
${
translations
[Debug scripts for PortProton
(saved log in]
}
$PORT_WINE_PATH
/scripts-debug.log)
--update
${
translations
[Check update scripts for PortProton]
}
--launch
${
translations
[Launches the application immediately, requires the path to the .exe file]
}
--edit-db
${
translations
[After the variable, the path to the .exe file is required and then the variables.
(List their variables and values for example PW_MANGOHUD=1 PW_VKBASALT=0, etc.)]
}
--autoinstall
${
translations
[--autoinstall and the name of what needs to be installed is given in the list below
:]
}
$(
echo
$files_from_autoinstall
|
awk
'{for (i = 1; i <= NF; i++) {if (i % 10 == 0) {print ""} printf "%s ", $i}}'
)
"
}
help_info
exit
0
;;
--reinstall
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment