add torrent location to the site

This commit is contained in:
idk
2020-10-07 01:06:37 -04:00
parent 35cb89c9f0
commit c05b4e932f
4 changed files with 8 additions and 8 deletions

View File

@ -5,24 +5,23 @@ dummy:
all: clean index torrent up
clean:
rm -rf idk.i2p .torrent ~/.i2p/i2psnark/idk.i2p ~/.i2p/i2psnark/idk.i2p.torrent tmp
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 .git idk.i2p/.git
mktorrent -a 'http://g6r5tkh4b6psuxm42kzgmddclbha4cs667wumuqbuzhesu2phy4a.b32.i2p/a' -n 'idk.i2p' -w 'http://idk.i2p' -w 'http://b2o47zwxqjbn7jj37yqkmvbmci7kqubwgxu3umqid7cexmc7xudq.b32.i2p' -o .torrent idk.i2p
cp -v *.* idk.i2p; true
mktorrent -a 'http://g6r5tkh4b6psuxm42kzgmddclbha4cs667wumuqbuzhesu2phy4a.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
up:
cp .torrent ~/.i2p/i2psnark/idk.i2p.torrent
sleep 30s
cp idk.i2p.torrent ~/.i2p/i2psnark/idk.i2p.torrent
mv ./idk.i2p ~/.i2p/i2psnark/idk.i2p
README:
cat yTop.md ySidebar.md zBlog.md | tee README.md
mag:
@echo `torrent2magnet .torrent`
@echo `torrent2magnet idk.i2p.torrent`
index: README
@echo "<!DOCTYPE html>" > index.html
@ -31,7 +30,7 @@ index: README
@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 .torrent`"\"/>" >> 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 | \