mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-14 16:46:28 +01:00
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 <sol@solfisher.com>
16 lines
260 B
Bash
16 lines
260 B
Bash
#!/bin/sh
|
|
|
|
# Run this script on a directory to handle PO files with no id
|
|
DIRNAME=$(dirname "$0")
|
|
|
|
if [ $# -eq 0 ]; then
|
|
set -- "$DIRNAME/../"
|
|
fi
|
|
|
|
for dir in "$@"
|
|
do
|
|
for po_file in "${dir}"/*.po; do
|
|
sed -i '/^Project/d' "$po_file"
|
|
done
|
|
done
|