Skip to content

Commit

Permalink
修改路径
Browse files Browse the repository at this point in the history
  • Loading branch information
garywill committed Mar 2, 2024
1 parent 9dd58c0 commit 107007d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
10 changes: 5 additions & 5 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ var fs = require('fs');
eval(fs.readFileSync('common.js').toString());
eval(fs.readFileSync('init.js').toString());

eval(fs.readFileSync("unicode-data/unicode-data-blocks.js").toString());
eval(fs.readFileSync("unicode-data/unicode-data-ages.js").toString());
eval(fs.readFileSync("unicode-data/unicode-data-Cc.js").toString());
eval(fs.readFileSync("unicode-data/unicode-data-Mn.js").toString());
eval(fs.readFileSync("data/unicode-data/unicode-data-blocks.js").toString());
eval(fs.readFileSync("data/unicode-data/unicode-data-ages.js").toString());
eval(fs.readFileSync("data/unicode-data/unicode-data-Cc.js").toString());
eval(fs.readFileSync("data/unicode-data/unicode-data-Mn.js").toString());
eval(fs.readFileSync("ucd.js").toString());

eval(fs.readFileSync("summary-data/summary-data-map2.js").toString());
eval(fs.readFileSync("data/summary-data/summary-data-map2.js").toString());

eval(fs.readFileSync("unusual_conditions.js").toString());
eval(fs.readFileSync("checkessay.js").toString());
Expand Down
10 changes: 5 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
<script type="text/javascript" src="js_web/common.js"></script>

<script type="text/javascript" src="init.js"></script>
<script type="text/javascript" src="unicode-data/unicode-data-blocks.js"></script>
<script type="text/javascript" src="unicode-data/unicode-data-ages.js"></script>
<script type="text/javascript" src="unicode-data/unicode-data-Cc.js"></script>
<script type="text/javascript" src="unicode-data/unicode-data-Mn.js"></script>
<script type="text/javascript" src="data/unicode-data/unicode-data-blocks.js"></script>
<script type="text/javascript" src="data/unicode-data/unicode-data-ages.js"></script>
<script type="text/javascript" src="data/unicode-data/unicode-data-Cc.js"></script>
<script type="text/javascript" src="data/unicode-data/unicode-data-Mn.js"></script>
<script type="text/javascript" src="ucd.js"></script>

<script type="text/javascript" src="summary-data/summary-data-map2.js"></script>
<script type="text/javascript" src="data/summary-data/summary-data-map2.js"></script>

<script type="text/javascript" src="unusual_conditions.js"></script>
<script type="text/javascript" src="checkessay.js"></script>
Expand Down
18 changes: 9 additions & 9 deletions sync_opencc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 107007d

Please sign in to comment.