@@ -25,7 +25,7 @@ RM := rm
2525
2626all : install
2727
28- install :
28+ install : check-dep
2929 @echo " Install libraries..."
3030 sudo ./install.sh --yes
3131 @echo " done"
@@ -60,7 +60,30 @@ dist-full: clean
6060 @echo " $( PROJECT_NAME) -full-$( VERSION) .tar.xz done"
6161
6262check :
63- find . -type f -name " *.sh" ! -path " *./git/*" ! -path " */install.sh" ! -path " */uninstall.sh" ! -path " */Bash-Snippet/*" ! -path " */git-scripts/*" ! -path " */git-extras/*" ! -path " */git-extra-commands/*" ! -path " */cryptr/*" ! -path " */others-dist/*" -exec $(SHELL ) -n {} \;
63+ find . -type f -name " *.sh" ! -path " *./git/*" ! -path " */install.sh" ! -path " */uninstall.sh" ! -path " */Bash-Snippet/*" ! -path " */git-scripts/*" ! -path " */git-extras/*" ! -path " */git-extra-commands/*" ! -path " */cryptr/*" ! -path " */others-dist/*" ! -path " */bash-scripts/*" ! -path " */fff/*" -exec $(SHELL ) -n {} \;
64+
65+ check-dep :
66+ @echo " Check dependency:"
67+ @echo " "
68+ @bash --version > /dev/null 2>&1 && echo " bash: OK" || echo " bash: Missing"
69+ @parallel --version > /dev/null 2>&1 && echo " parallel: OK" || echo " parallel: Missing"
70+ @find --version > /dev/null 2>&1 && echo " find: OK" || echo " find: Missing"
71+ @xargs --version > /dev/null 2>&1 && echo " xargs: OK" || echo " xargs: Missing"
72+ @git --version > /dev/null 2>&1 && echo " git: OK" || echo " git: Missing"
73+ @docker --version> /dev/null 2>&1 && echo " docker: OK" || echo " docker: Missing"
74+ @openssl version > /dev/null 2>&1 && echo " openssl: OK" || echo " openssl: Missing"
75+ @cryptsetup --version > /dev/null 2>&1 && echo " cryptsetup: OK" || echo " cryptsetup: Missing"
76+ @xz --version > /dev/null 2>&1 && echo " xz: OK" || echo " xz: Missing"
77+ @tar --version > /dev/null 2>&1 && echo " tar: OK" || echo " tar: Missing"
78+ @mount --version > /dev/null 2>&1 && echo " mount: OK" || echo " mount: Missing"
79+ @mkfs.btrfs --version > /dev/null 2>&1 && echo " mkfs.btrfs: OK" || echo " mkfs.btrfs: Missing"
80+ @gource --help > /dev/null 2>&1 && echo " gource: OK" || echo " gource: Missing"
81+ @youtube-dl --version > /dev/null 2>&1 && echo " youtube-dl: OK" || echo " youtube-dl: Missing"
82+ @ffmpeg -version > /dev/null 2>&1 && echo " ffmpeg: OK" || echo " ffmpeg: Missing"
83+ @cwebp -version > /dev/null 2>&1 && echo " cwebp: OK" || echo " cwebp: Missing"
84+ @avifenc --version > /dev/null 2>&1 && echo " avifenc: OK" || echo " avifenc: Missing"
85+ @magick -version > /dev/null 2>&1 && echo " magick: OK" || echo " magick: Missing"
86+
6487
6588clean :
6689 $(RM ) -rf package_build/
0 commit comments