Fix packaging
This commit is contained in:
parent
f395566104
commit
beffb79613
12
Makefile
12
Makefile
@ -6,6 +6,7 @@ PREFIX=/usr/local
|
|||||||
|
|
||||||
CP=cp
|
CP=cp
|
||||||
INSTALL=install
|
INSTALL=install
|
||||||
|
LN=ln
|
||||||
MKDIR=mkdir -p
|
MKDIR=mkdir -p
|
||||||
PYTHON=python3
|
PYTHON=python3
|
||||||
RM=rm -f -v
|
RM=rm -f -v
|
||||||
@ -13,14 +14,15 @@ RM=rm -f -v
|
|||||||
all:
|
all:
|
||||||
|
|
||||||
install:
|
install:
|
||||||
$(INSTALL) -Dm0755 danmaku2ass.py "$(DESTDIR)$(PREFIX)/bin/danmaku2ass"
|
$(MKDIR) "$(DESTDIR)$(PREFIX)/share/danmaku2ass"
|
||||||
$(MKDIR) "$(DESTDIR)$(PREFIX)/share"
|
$(INSTALL) -Dm0755 danmaku2ass.py "$(DESTDIR)$(PREFIX)/share/danmaku2ass"
|
||||||
$(CP) -R locale "$(DESTDIR)$(PREFIX)/share/"
|
$(CP) -R locale "$(DESTDIR)$(PREFIX)/share/danmaku2ass/"
|
||||||
|
$(MKDIR) "$(DESTDIR)$(PREFIX)/bin"
|
||||||
|
$(LN) -s "$(PREFIX)/share/danmaku2ass/danmaku2ass.py" "$(DESTDIR)$(PREFIX)/bin/danmaku2ass"
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) -R __pycache__
|
$(RM) -R __pycache__
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
$(RM) "$(DESTDIR)$(PREFIX)/bin/danmaku2ass"
|
$(RM) "$(DESTDIR)$(PREFIX)/bin/danmaku2ass" "$(DESTDIR)$(PREFIX)/share/danmaku2ass"
|
||||||
$(RM) "$(DESTDIR)$(PREFIX)/share/locale/"*"/LC_MESSAGES/danmaku2ass."*
|
|
||||||
|
|
||||||
|
@ -6,11 +6,12 @@ import gettext
|
|||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
import math
|
import math
|
||||||
|
import os
|
||||||
import sys
|
import sys
|
||||||
import xml.dom.minidom
|
import xml.dom.minidom
|
||||||
|
|
||||||
|
|
||||||
gettext.install('danmaku2ass', 'locale')
|
gettext.install('danmaku2ass', os.path.join(os.path.dirname(os.path.abspath(__file__)), 'locale'))
|
||||||
|
|
||||||
|
|
||||||
def ProcessComments(comments, f, width, height, bottomReserved, fontface, fontsize, alpha, lifetime, reduced):
|
def ProcessComments(comments, f, width, height, bottomReserved, fontface, fontsize, alpha, lifetime, reduced):
|
||||||
|
Loading…
Reference in New Issue
Block a user