l10n: Add append.sh

This commit is contained in:
Calcitem 2021-09-19 21:15:12 +08:00
parent 82e44da06f
commit 9b6c096cb4
No known key found for this signature in database
GPG Key ID: F2F7C29E054CFB80
5 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1 @@
mrgtmp*

View File

@ -0,0 +1,16 @@
#!/bin/bash
append() {
for file in `ls *.arb`
do
if test -f $file
then
echo "ARB file: $file"
./append.sh $file . #需要执行的命令这里解包deb文件
fi
done
}
path="/home/work/xxx/xxx"
append

View File

@ -0,0 +1,17 @@
#!/bin/bash
ARB_FILE=$1
APPEND_FILE=./append.txt
echo "Appending APPEND_FILE to $ARB_FILE..."
sed -i '$s/}$//' $ARB_FILE
sed -i '$s/ }$//' $ARB_FILE
sed -i '${/^$/d;}' $ARB_FILE
dos2unix.exe $ARB_FILE
dos2unix.exe $APPEND_FILE
cat $APPEND_FILE >> $ARB_FILE
echo "Done."

View File

@ -0,0 +1,6 @@
},
"algorithm": "Algorithm",
"@algorithm": {
"description": "Algorithm"
}
}

Binary file not shown.