1

Conditionally deleting old files in build scripts

Former-commit-id: 49e2557a35946df591ef3682e2cb4041a490bd9e
This commit is contained in:
Alex Yatskov 2013-11-16 13:01:47 -08:00
parent 9461c0f3dc
commit 0c60eebf71
2 changed files with 5 additions and 1 deletions

View File

@ -4,5 +4,5 @@ KANJIDIC=util/kanjidic
EDICT=util/edict EDICT=util/edict
DICT=yomi_base/japanese/dictionary.db DICT=yomi_base/japanese/dictionary.db
rm $DICT [ -f $DICT ] && rm $DICT
util/compile.py --kanjidic $KANJIDIC --edict $EDICT $DICT util/compile.py --kanjidic $KANJIDIC --edict $EDICT $DICT

View File

@ -1,2 +1,6 @@
#!/bin/sh #!/bin/sh
ZIP=yomichan.zip
[ -f $ZIPFILE ] rm $ZIP
7z a yomichan.zip -xr\!\*.pyc yomichan.py yomi_base 7z a yomichan.zip -xr\!\*.pyc yomichan.py yomi_base