-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
84 lines (68 loc) · 3.34 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
DIR := ${CURDIR}
tsv_edl.tar.gz:
tar zcvf tsv_edl.tar.gz autoload/ doc/ ftplugin/ ftdetect/ syntax/
deploy:
rsync --exclude '*.sw?' -av autoload ftdetect ftplugin syntax $(HOME)/.vim
install-micro:
ln -sf ${CURDIR}/micro/syntax/tsv_edl.yaml ~/.config/micro/syntax/
ln -sf ${CURDIR}/micro/plug/tsv_edl-plugin ~/.config/micro/plug/
install-utils:
chmod +x ${CURDIR}/utils/tsv2edl.py
chmod +x ${CURDIR}/utils/tsv2srt.py
chmod +x ${CURDIR}/utils/tsv2srt_all.py
chmod +x ${CURDIR}/utils/audio2srtvideo.sh
chmod +x ${CURDIR}/utils/audio2video.sh
chmod +x ${CURDIR}/utils/tsv2roughcut.py
chmod +x ${CURDIR}/utils/mkgap_10_mp3
chmod +x ${CURDIR}/utils/mkgap_10_mp4
chmod +x ${CURDIR}/utils/tsv2srt_reflow.py
chmod +x ${CURDIR}/utils/srt2tsv.sh
chmod +x ${CURDIR}/utils/srt2tsv.py #when no argument given, do all in the same directory
chmod +x ${CURDIR}/utils/scenecut_preview.sh
chmod +x ${CURDIR}/utils/audiocut.sh
chmod +x ${CURDIR}/utils/srt2txt.sh
chmod +x ${CURDIR}/utils/tsv2zh_cn.sh
chmod +x ${CURDIR}/utils/tsv2fcpxml.py
sudo ln -sf ${CURDIR}/utils/tsv2edl.py /usr/local/bin/tsv2edl
sudo ln -sf ${CURDIR}/utils/srt2tsv.py /usr/local/bin/srt2tsv
sudo ln -sf ${CURDIR}/utils/audio2srtvideo.sh /usr/local/bin/audio2srtvideo
sudo ln -sf ${CURDIR}/utils/audio2video.sh /usr/local/bin/audio2video
sudo ln -sf ${CURDIR}/utils/tsv2srt.py /usr/local/bin/tsv2srt
sudo ln -sf ${CURDIR}/utils/tsv2srt_all.py /usr/local/bin/tsv2srt_all
sudo ln -sf ${CURDIR}/utils/tsv2roughcut.py /usr/local/bin/tsv2roughcut
sudo ln -sf ${CURDIR}/utils/mkgap_10_mp4 /usr/local/bin/mkgap_10_mp4
sudo ln -sf ${CURDIR}/utils/mkgap_10_mp3 /usr/local/bin/mkgap_10_mp3
sudo ln -sf ${CURDIR}/utils/tsv2srt_reflow.py /usr/local/bin/tsv2srt_reflow
sudo ln -sf ${CURDIR}/utils/scenecut_preview.sh /usr/local/bin/scenecut_preview
sudo ln -sf ${CURDIR}/utils/audiocut.sh /usr/local/bin/audiocut
sudo ln -sf ${CURDIR}/utils/srt2txt.sh /usr/local/bin/srt2txt
sudo ln -sf ${CURDIR}/utils/tsv2zh_cn.sh /usr/local/bin/tsv2zh_cn
sudo ln -sf ${CURDIR}/utils/tsv2fcpxml.py /usr/local/bin/tsv2fcpxml
uninstall-utils:
cd /usr/local/bin; sudo rm -i audio2video audio2srtvideo mkgap_10_mp3 mkgap_10_mp4 srt2tsv tsv2edl tsv2roughcut tsv2srt tsv2srt_all tsv2srt_reflow scenecut_preview srt2txt tsv2zh_cn audiocut
install-depends-on-mac-no-homebrew: install-ffmpeg-mac install-jq-mac install-mpv-mac install-socat-mac
rm -i ffmpeg-mac.zip mpv-latest.tar.gz socat_macOS.bin jq_macOS.bin
fetch-mac: ffmpeg-mac.zip mpv-latest.tar.gz jq_macOS.bin socat_macOS.bin
install-ffmpeg-mac: ffmpeg-mac.zip
unzip ffmpeg-mac.zip
chmod +x ffmpeg
sudo mv ffmpeg /usr/local/bin/
install-mpv-mac: mpv-latest.tar.gz
tar zxvf mpv-latest.tar.gz
mv mpv.app /Applications/
rm -r documentation/
sudo ln -sf /Applications/mpv.app/Contents/MacOS/mpv /usr/local/bin/mpv
install-jq-mac: jq_macOS.bin
chmod +x $<
sudo cp $< /usr/local/bin/jq
install-socat-mac: socat_macOS.bin
chmod +x socat_macOS.bin
sudo cp socat_macOS.bin /usr/local/bin/socat
jq_macOS.bin:
curl -JL https://github.com/stedolan/jq/releases/download/jq-1.6/jq-osx-amd64 -o jq_macOS.bin
ffmpeg-mac.zip:
curl -JL https://evermeet.cx/ffmpeg/getrelease/zip -o $@
mpv-latest.tar.gz:
curl -JL https://laboratory.stolendata.net/~djinn/mpv_osx/mpv-latest.tar.gz -o $@
socat_macOS.bin:
curl -JL https://github.com/3ndG4me/socat/releases/download/v1.7.3.3/socat_macOS.bin -o $@