1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-14 16:46:28 +01:00
Files
audacity/locale/scripts/find-PO-no-Id.sh
Sol Fisher Romanoff f395687c9f Change bash scripts to be POSIX-compatible
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>
2021-12-02 10:13:12 +02:00

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