l10n: Add append.sh
This commit is contained in:
parent
82e44da06f
commit
9b6c096cb4
|
@ -0,0 +1 @@
|
|||
mrgtmp*
|
|
@ -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
|
|
@ -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."
|
|
@ -0,0 +1,6 @@
|
|||
},
|
||||
"algorithm": "Algorithm",
|
||||
"@algorithm": {
|
||||
"description": "Algorithm"
|
||||
}
|
||||
}
|
Binary file not shown.
Loading…
Reference in New Issue