127 lines
6.4 KiB
Makefile
127 lines
6.4 KiB
Makefile
|
|
dummy:
|
|
@echo 'type make all then make index then push to ghp'
|
|
|
|
all: clean index torrent up
|
|
|
|
clean:
|
|
rm -rf idk.i2p .torrent idk.i2p.torrent ~/.i2p/i2psnark/idk.i2p ~/.i2p/i2psnark/idk.i2p.torrent tmp
|
|
mkdir -p idk.i2p
|
|
|
|
torrent:
|
|
cp -v *.* idk.i2p; true; cp -rv images idk.i2p/images; cp -rv video idk.i2p/video; cp -rv plugins idk.i2p/plugins && cp -rv .git idk.i2p/.git && rm -f idk.i2p/idk.i2p.torrent
|
|
mktorrent -a 'http://w7tpbzncbcocrqtwwm3nezhnnsw4ozadvi2hmvzdhrqzfxfum7wa.b32.i2p/a' \
|
|
-a 'http://uajd4nctepxpac4c4bdyrdw7qvja2a5u3x25otfhkptcjgd53ioq.b32.i2p/announce' \
|
|
-a 'http://s5ikrdyjwbcgxmqetxb3nyheizftms7euacuub2hic7defkh3xhq.b32.i2p/a' \
|
|
-a 'http://432m3mpxomy2bqccjmjru7gfeicockx7un5eni5i5uqxgakcvq6a.b32.i2p/a' \
|
|
-a 'http://niat6zw3p5wl473256bottv3kaybodhum2omlt3bl42oiirwf5xa.b32.i2p/a' \
|
|
-n 'idk.i2p' -w 'http://idk.i2p' -w 'http://b2o47zwxqjbn7jj37yqkmvbmci7kqubwgxu3umqid7cexmc7xudq.b32.i2p' -o idk.i2p.torrent idk.i2p
|
|
rm -rf ~/.i2p/i2psnark/idk.i2p ~/.i2p/i2psnark/idk.i2p.torrent
|
|
|
|
seed: index curl upload
|
|
|
|
curl:
|
|
@echo "#! /usr/bin/env bash" | tee curl.sh
|
|
@echo "wget -O ~/.i2p/i2psnark/idk.i2p.torrent https://eyedeekay.github.io/idk.i2p.torrent" | tee -a curl.sh
|
|
@echo "wget -O ~/.i2p/i2psnark/idk.i2p.zip https://github.com/eyedeekay/eyedeekay.github.io/archive/`torrent2magnet idk.i2p.torrent | sed 's|magnet:?xt=urn:btih:||g'`.magnet.zip" | tee -a curl.sh
|
|
#@echo "wget -O ~/.i2p/i2psnark/idk.i2p.zip https://github.com/eyedeekay/eyedeekay.github.io/releases/download/`torrent2magnet idk.i2p.torrent | sed 's|magnet:?xt=urn:btih:||g'`.magnet/idk.i2p.zip" | tee -a curl.sh
|
|
@echo "unzip -j ~/.i2p/i2psnark/idk.i2p.zip -d ~/.i2p/i2psnark/idk.i2p" | tee -a curl.sh
|
|
zip -r idk.i2p.zip idk.i2p
|
|
|
|
upload: upload-release upload-torrent upload-zip
|
|
|
|
upload-release:
|
|
gothub release -p -u eyedeekay -r eyedeekay.github.io -t `torrent2magnet idk.i2p.torrent | sed 's|magnet:?xt=urn:btih:||g'`.magnet -n "`torrent2magnet idk.i2p.torrent | sed 's|magnet:?xt=urn:btih:||g'`".magnet -d "Site snapshot as of `date`"
|
|
|
|
upload-torrent:
|
|
gothub upload -R -u eyedeekay -r eyedeekay.github.io -t `torrent2magnet idk.i2p.torrent | sed 's|magnet:?xt=urn:btih:||g'`.magnet -n idk.i2p.torrent -f idk.i2p.torrent
|
|
|
|
upload-zip:
|
|
#gothub -v upload -R -u eyedeekay -r eyedeekay.github.io -t `torrent2magnet idk.i2p.torrent | sed 's|magnet:?xt=urn:btih:||g'`.magnet -n idk.i2p.zip -f idk.i2p.zip
|
|
|
|
up:
|
|
cp idk.i2p.torrent ~/.i2p/i2psnark/idk.i2p.torrent
|
|
cp -rv ./idk.i2p ~/.i2p/i2psnark/idk.i2p
|
|
|
|
README:
|
|
cat yTop.md ySidebar.md zBlog.md | tee README.md
|
|
|
|
plug:
|
|
@echo "<!DOCTYPE html>" > plugins.html
|
|
@echo "<html>" >> plugins.html
|
|
@echo "<head>" >> plugins.html
|
|
@echo " <title>idk's home page</title>" >> plugins.html
|
|
@echo " <link rel=\"stylesheet\" type=\"text/css\" href =\"style.css\" />" >> plugins.html
|
|
@echo " <meta http-equiv=\"i2p-location\" content=\"http://b2o47zwxqjbn7jj37yqkmvbmci7kqubwgxu3umqid7cexmc7xudq.b32.i2p\"/>" >> plugins.html
|
|
@echo " <meta http-equiv=\"i2p-torrentlocation\" content=\""`torrent2magnet idk.i2p.torrent`"\"/>" >> plugins.html
|
|
@echo "</head>" >> plugins.html
|
|
@echo "<body>" >> plugins.html
|
|
sed "s|magnetsub|[Magnet Link]($(magnet))|g" plugins.md | \
|
|
sed 's|https://github.com/eyedeekay/various-i2p-browsers/tree/master||g' | \
|
|
markdown | tee -a plugins.html
|
|
@echo " <script src=\"script.js\" type=\"text/javascript\"></script>" >> plugins.html
|
|
@echo "</body>" >> plugins.html
|
|
@echo "</html>" >> plugins.html
|
|
|
|
info:
|
|
@echo "<!DOCTYPE html>" > infographics.html
|
|
@echo "<html>" >> infographics.html
|
|
@echo "<head>" >> infographics.html
|
|
@echo " <title>idk's home page</title>" >> infographics.html
|
|
@echo " <link rel=\"stylesheet\" type=\"text/css\" href =\"style.css\" />" >> infographics.html
|
|
@echo " <meta http-equiv=\"i2p-location\" content=\"http://b2o47zwxqjbn7jj37yqkmvbmci7kqubwgxu3umqid7cexmc7xudq.b32.i2p\"/>" >> infographics.html
|
|
@echo " <meta http-equiv=\"i2p-torrentlocation\" content=\""`torrent2magnet idk.i2p.torrent`"\"/>" >> infographics.html
|
|
@echo "</head>" >> infographics.html
|
|
@echo "<body>" >> infographics.html
|
|
sed "s|magnetsub|[Magnet Link]($(magnet))|g" infographics.md | \
|
|
sed 's|https://github.com/eyedeekay/various-i2p-browsers/tree/master||g' | \
|
|
markdown | tee -a infographics.html
|
|
@echo " <script src=\"script.js\" type=\"text/javascript\"></script>" >> infographics.html
|
|
@echo "</body>" >> infographics.html
|
|
@echo "</html>" >> infographics.html
|
|
|
|
vid:
|
|
@echo "<!DOCTYPE html>" > video.html
|
|
@echo "<html>" >> video.html
|
|
@echo "<head>" >> video.html
|
|
@echo " <title>idk's home page</title>" >> video.html
|
|
@echo " <link rel=\"stylesheet\" type=\"text/css\" href =\"style.css\" />" >> video.html
|
|
@echo " <meta http-equiv=\"i2p-location\" content=\"http://b2o47zwxqjbn7jj37yqkmvbmci7kqubwgxu3umqid7cexmc7xudq.b32.i2p\"/>" >> video.html
|
|
@echo " <meta http-equiv=\"i2p-torrentlocation\" content=\""`torrent2magnet idk.i2p.torrent`"\"/>" >> video.html
|
|
@echo "</head>" >> video.html
|
|
@echo "<body>" >> video.html
|
|
sed "s|magnetsub|[Magnet Link]($(magnet))|g" videos.md | \
|
|
sed 's|https://github.com/eyedeekay/various-i2p-browsers/tree/master||g' | \
|
|
markdown | tee -a video.html
|
|
@echo "<ul><li>" >> video.html
|
|
./videotag.sh video/torontotalk.webm >> video.html
|
|
@echo "</li><li>" >> video.html
|
|
./videotag.sh video/monerotalk.mp4 >> video.html
|
|
@echo "</li></ul>" >> video.html
|
|
@echo " <script src=\"script.js\" type=\"text/javascript\"></script>" >> video.html
|
|
@echo "</body>" >> video.html
|
|
@echo "</html>" >> video.html
|
|
|
|
|
|
mag:
|
|
@echo `torrent2magnet idk.i2p.torrent`
|
|
@echo `torrent2magnet idk.i2p.torrent | sed 's|magnet:?xt=urn:btih:||g'`
|
|
|
|
index: README info vid plug curl
|
|
@echo "<!DOCTYPE html>" > index.html
|
|
@echo "<html>" >> index.html
|
|
@echo "<head>" >> index.html
|
|
@echo " <title>idk's home page</title>" >> index.html
|
|
@echo " <link rel=\"stylesheet\" type=\"text/css\" href =\"style.css\" />" >> index.html
|
|
@echo " <meta http-equiv=\"i2p-location\" content=\"http://b2o47zwxqjbn7jj37yqkmvbmci7kqubwgxu3umqid7cexmc7xudq.b32.i2p\"/>" >> index.html
|
|
@echo " <meta http-equiv=\"i2p-torrentlocation\" content=\""`torrent2magnet idk.i2p.torrent`"\"/>" >> index.html
|
|
@echo "</head>" >> index.html
|
|
@echo "<body>" >> index.html
|
|
sed "s|magnetsub|[Magnet Link]($(magnet))|g" README.md | \
|
|
sed 's|https://github.com/eyedeekay/various-i2p-browsers/tree/master||g' | \
|
|
markdown | tee -a index.html
|
|
@echo " <script src=\"script.js\" type=\"text/javascript\"></script>" >> index.html
|
|
@echo "</body>" >> index.html
|
|
@echo "</html>" >> index.html
|
|
|