-
-
Notifications
You must be signed in to change notification settings - Fork 255
Script Overhaul #421
base: master
Are you sure you want to change the base?
Script Overhaul #421
Conversation
I think it might make more sense to separate the user scripts entirely, and put them all in |
Doing that makes having a default location for where the scripts are modifying things more awkward. Right now the scripts are immediately next to the directories they modify. |
input_dirs[0]="${BASH_SOURCE[0]}/../../images/EditButtons" | ||
input_dirs[1]="${BASH_SOURCE[0]}/../../images/TranscriptionImages" | ||
input_dirs[2]="${BASH_SOURCE[0]}/../../images/ControlButtons" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See lines 3-8.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried this syntax on a few of my systems and it sometimes does not work.
Also, collapsed it to $DIRNAME
in my patch
input_dirs[0]="${BASH_SOURCE[0]}/../../images/EditButtons" | |
input_dirs[1]="${BASH_SOURCE[0]}/../../images/TranscriptionImages" | |
input_dirs[2]="${BASH_SOURCE[0]}/../../images/ControlButtons" | |
DIRNAME=$(dirname "${BASH_SOURCE[0]}") | |
input_dirs[0]="$DIRNAME/../../images/EditButtons" | |
input_dirs[1]="$DIRNAME/../../images/TranscriptionImages" | |
input_dirs[2]="$DIRNAME/../../images/ControlButtons" |
input_dirs[0]="${BASH_SOURCE[0]}/../../images/EditButtons" | ||
input_dirs[1]="${BASH_SOURCE[0]}/../../images/TranscriptionImages" | ||
input_dirs[2]="${BASH_SOURCE[0]}/../../images/ControlButtons" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried this syntax on a few of my systems and it sometimes does not work.
Also, collapsed it to $DIRNAME
in my patch
input_dirs[0]="${BASH_SOURCE[0]}/../../images/EditButtons" | |
input_dirs[1]="${BASH_SOURCE[0]}/../../images/TranscriptionImages" | |
input_dirs[2]="${BASH_SOURCE[0]}/../../images/ControlButtons" | |
DIRNAME=$(dirname "${BASH_SOURCE[0]}") | |
input_dirs[0]="$DIRNAME/../../images/EditButtons" | |
input_dirs[1]="$DIRNAME/../../images/TranscriptionImages" | |
input_dirs[2]="$DIRNAME/../../images/ControlButtons" |
Yeah |
|
It should be sufficient. There are ways to support symlinks but I don't think it's needed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we change the scripts to use /bin/sh
instead of /bin/bash
? Not every system has bash installed on it.
This might not be as simple as changing the shebang; we'll need to check for bashisms throughout the scripts and remove them.
|
Yeah I can do that. |
@emabrey mind if I take a crack at converting the files to |
Considering that she is currently absent from the project, I see no reason for that to not happen. It's an already agreed approach, we better do something than nothing. @solfisher |
If you want to make the scripts more portable, sure, why not? |
removing bashisms was simple, but I might've messed up the rebase -- if someone could please check to see I've not added/removed anything important |
Update `msgfmt.py` to recent python 3 version. Instruct CMake to load `Gettext.Tools` version `0.21.0.1` when using NuGet. Cleanup `regen_POT_file.sh`. Correct list of languages in `LanguageNames.txt` Cleanup various locale Perl scripts. Make `find-PO-no-Id.sh` use glob file access. Cleanup output of `locale_diagnostics.sh` Cleanup bash scripts and add double-quoting to prevent string issues. Move various locale scripts to `locale/scripts` directory. Signed-off-by: Emily Mabrey <[email protected]>
Signed-off-by: Emily Mabrey <[email protected]>
Signed-off-by: Emily Mabrey <[email protected]>
some Unix-like operating systems, namely Alpine, don't come with bash preinstalled. scripts in the lib-src/ directory were left untouched. Signed-off-by: Sol Fisher Romanoff <[email protected]>
As referenced in https://github.com/tenacityteam/tenacity/pull/407 we needed to overhaul our contributor scripts and cleanup their directory layout.
Checklist
-s
orSigned-off-by
* (See: Contributing § DCO)* indicates required