-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
19 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,33 +23,33 @@ TWVariants.txt | |
|
||
for ((i=0; i<${#opencc_file_list[@]}; i++ )) | ||
do | ||
sha1sum opencc-data/${opencc_file_list[i]} | ||
wget https://raw.githubusercontent.com/BYVoid/OpenCC/master/data/dictionary/${opencc_file_list[i]} -O opencc-data/${opencc_file_list[i]} || exit 1 | ||
#curl https://raw.githubusercontent.com/BYVoid/OpenCC/master/data/dictionary/${opencc_file_list[i]} > opencc-data/${opencc_file_list[i]} | ||
sha1sum data/opencc-data/${opencc_file_list[i]} | ||
wget https://raw.githubusercontent.com/BYVoid/OpenCC/master/data/dictionary/${opencc_file_list[i]} -O data/opencc-data/${opencc_file_list[i]} || exit 1 | ||
#curl https://raw.githubusercontent.com/BYVoid/OpenCC/master/data/dictionary/${opencc_file_list[i]} > data/opencc-data/${opencc_file_list[i]} | ||
|
||
|
||
git config user.name bot | ||
git config user.email [email protected] | ||
|
||
sha1sum opencc-data/${opencc_file_list[i]} | ||
git add opencc-data/${opencc_file_list[i]} | ||
sha1sum data/opencc-data/${opencc_file_list[i]} | ||
git add data/opencc-data/${opencc_file_list[i]} | ||
git diff | ||
git commit -m "sync opencc ${opencc_file_list[i]}" | ||
#git log | ||
|
||
done | ||
|
||
pushd . | ||
cd opencc-data | ||
cd data/opencc-data | ||
node pre.js || exit 1 | ||
git add -u opencc-data-*.js | ||
git add -u data/opencc-data-*.js | ||
git commit -m "run opencc pre.js" | ||
popd | ||
|
||
pushd . | ||
cd summary-data | ||
cd data/summary-data | ||
node pre.js || exit 1 | ||
git add -u summary-data-*.js | ||
git add -u data/summary-data-*.js | ||
git commit -m "run summary pre.js" | ||
popd | ||
|
||
|