makefile
来自「BleachBit 删除了不必要的文件(例如缓存器」· 代码 · 共 41 行
TXT
41 行
APP = bleachbitPOFILES = $(wildcard *.po)MOFILES = $(patsubst %.po,%.mo,$(POFILES))SRC = $(wildcard ../bleachbit/*.py)POTFILE = $(APP).pot$(POTFILE): $(SRC) xgettext -o $(APP).pot --default-domain=$(APP) $(SRC)refresh-po: $(POTFILE) for oldpo in $(POFILES); do \ lang=`basename $$oldpo .po`; \ msgmerge -v $${lang}.po $(POTFILE) > $${lang}.pot; \ mv $$lang.pot $$lang.po; \ donespelling: $(POTFILE) grep msgid $(POTFILE) | cut -c 8- | aspell list grep msgstr es.po | cut -c 8- | LANG=es_ES.utf8 aspell list%.mo: %.po msgfmt --statistics -o $@ $< # copy locally for running without installation mkdir -p ../locale/$(@:.mo=)/LC_MESSAGES/ cp -lf $@ ../locale/$(@:.mo=)/LC_MESSAGES/bleachbit.moinstall: $(MOFILES) for MO in $(MOFILES); do \ lang=`basename $$MO .mo`; \ DST=$(DESTDIR)/usr/share/locale/$$lang/LC_MESSAGES/; \ mkdir -p $$DST; \ cp $$MO $$DST/bleachbit.mo; \doneclean: @rm -fv *.moall: $(APP).pot $(MOFILES)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?