diff options
author | Jesús <heckyel@hyperbola.info> | 2019-12-13 18:29:21 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2019-12-13 18:29:21 -0500 |
commit | 06fd7e8e15a6ba10cc211bb6a24bc0c0d372ca76 (patch) | |
tree | b834d7cbc3ae15dcdee3a8e307d27ff9fb8fb063 | |
parent | 6bf28f116dbf5f288d1b766fff40273c8bf3f390 (diff) | |
download | hypervideo-gui-06fd7e8e15a6ba10cc211bb6a24bc0c0d372ca76.tar.lz hypervideo-gui-06fd7e8e15a6ba10cc211bb6a24bc0c0d372ca76.tar.xz hypervideo-gui-06fd7e8e15a6ba10cc211bb6a24bc0c0d372ca76.zip |
Add Makefile
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | Makefile | 34 | ||||
-rw-r--r-- | README.md | 10 |
3 files changed, 47 insertions, 0 deletions
@@ -6,3 +6,6 @@ hypervideo_gui.egg-info *.spec *.json MANIFEST +README.txt +# build +hypervideo-gui.tar.gz diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..aede226 --- /dev/null +++ b/Makefile @@ -0,0 +1,34 @@ +help: + @echo 'Makefile for generate tarball to Hypervideo GUI ' + @echo ' ' + @echo 'Usage: ' + @echo ' make dist - generate tarball ' + @echo ' make clean - cleaunp ' + @echo ' ' + +all: dist + +# set markdown input format to "markdown-smart" for pandoc version 2 and to "markdown" for pandoc prior to version 2 +MARKDOWN = $(shell if [ `pandoc -v | head -n1 | cut -d" " -f2 | head -c1` = "2" ]; then echo markdown-smart; else echo markdown; fi) + +README.txt: + pandoc -f $(MARKDOWN) -t plain README.md -o README.txt + +clean: + rm -rf hypervideo-gui.tar.gz hypervideo_gui.egg-info README.txt MANIFEST build/ dist/ + find . -name "*.pyc" -delete + find . -name "*.class" -delete + +dist: README.txt + @tar -czf hypervideo-gui.tar.gz --transform "s|^|hypervideo-gui/|" --owner 0 --group 0 \ + --exclude '*.DS_Store' \ + --exclude '*.kate-swp' \ + --exclude '*.pyc' \ + --exclude '*.pyo' \ + --exclude '*~' \ + --exclude '__pycache__' \ + --exclude '.git' \ + -- \ + bin hypervideo_gui images setup-files LICENSE \ + README.md README.txt Makefile \ + setup.py @@ -36,6 +36,16 @@ For default, download path settings are saved in file Just set up Python3 with libraries PyQt5. `cd` to the repository path, and then `python script.py`. +## GENERATE TARBALL + +Require `pandoc` for generate README.txt + + # pacman -S pandoc + +Run this to generate tarball: + + $ make dist + ### Troubleshooting Make sure you have the latest version of hypervideo! Use `pacman -Sy hypervideo`in the command line. For downloading audio only, you may need to install ffmpeg to handle the mp4 -> mp3 conversion |