client code and server shit

develop
fanta 3 years ago
parent fde267dc24
commit ab87d1b65f

@ -1,3 +1,3 @@
# fdd
Fanta Dos Disks
FDD - Fanta Dos Disks

@ -0,0 +1,5 @@
"THE BEER-WARE LICENSE" (Revision 42):
<fanta@56k.es> wrote this file. As long as you retain this notice you can
do whatever you want with this stuff. If we meet some day, and you think this
stuff is worth it, you can buy me a beer in return Fanta.

@ -0,0 +1,3 @@
# fdd
FDD - Fanta Dos Disks

@ -0,0 +1,43 @@
#!/bin/bash
# FDD - Fanta Dos Disks
# fanta <fanta@56k.es>
repository="http://fanta.56k.es/fantaDosDisks"
indexFile="archive.lst"
app=(wget sha256sum dosbox)
if [ "$(id -u)" == 0 ]; then echo "don't run this as root my friend"; exit; fi
[ -z "$(whereis -b ${app[0]} | awk {'print$2'})" ] && echo "wget - Maybe it is not installed on the system. Sorry but I can't continue." && exit
[ -z "$(whereis -b ${app[1]} | awk {'print$2'})" ] && echo "sha256sum - Maybe it is not installed on the system. Sorry but I can't continue." && exit
[ -z "$(whereis -b ${app[2]} | awk {'print$2'})" ] && echo "dosbox - Maybe it is not installed on the system. Sorry but I can't continue." && exit
[ -z "$(readlink -e "~/.fdd")" ] && mkdir -p ~/.fdd
# Update local DOS disks list
wget -q "$repository/$indexFile" -O ~/.fdd/$indexFile
echo " "
echo "8 8888888888 8 888888888o. 8 888888888o. "
echo "8 8888 8 8888 \`^888. 8 8888 \`^888. "
echo "8 8888 8 8888 \`88. 8 8888 \`88."
echo "8 8888 8 8888 \`88 8 8888 \`88"
echo "8 888888888888 8 8888 88 8 8888 88"
echo "8 8888 8 8888 88 8 8888 88"
echo "8 8888 8 8888 ,88 8 8888 ,88"
echo "8 8888 8 8888 ,88' 8 8888 ,88'"
echo "8 8888 8 8888 ,o88P' 8 8888 ,o88P' "
echo "8 8888 ANTA 8 888888888P' OS 8 888888888P' ISKS"
echo " "
while read -r disk
do
nameDisk=$(echo "$disk" | cut -d ";" -f 2)
shaSum=$(echo "$disk" | cut -d ";" -f 1)
[ -z "$(readlink -e ~/.fdd/$nameDisk)" ] && echo -en "+ $nameDisk\t" && wget -q "$repository/archive/$nameDisk" -O ~/.fdd/$nameDisk && echo -en "$(du -h ~/.fdd/$nameDisk | awk {'print$1'})" && res=$(if [ "$shaSum" == "$(sha256sum ~/.fdd/$nameDisk | cut -d " " -f 1)" ]; then echo -en "\t[OK]\t$shaSum\n"; fi) && echo "$res" && tar xfz ~/.fdd/$nameDisk -C ~/.fdd/ && ln -s ~/.fdd/$(echo $nameDisk | cut -d . -f 1)/dos-$(echo $nameDisk | cut -d "." -f 1) ~/.fdd/dos-$(echo $nameDisk | tr '[:upper:]' '[:lower:]' | cut -d "." -f 1)
done < ~/.fdd/$indexFile
echo " "
ls -1 ~/.fdd/ | grep -iv "archive.lst" | grep -i "dos-" | cut -d "." -f 1 | sort -u
fddPath=~/.fdd
echo -en "\nAdd to the PATH $fddPath\n\n"

@ -0,0 +1,5 @@
"THE BEER-WARE LICENSE" (Revision 42):
<fanta@56k.es> wrote this file. As long as you retain this notice you can
do whatever you want with this stuff. If we meet some day, and you think this
stuff is worth it, you can buy me a beer in return Fanta

@ -0,0 +1,2 @@
# fdd_server

@ -0,0 +1,19 @@
ffe218a864644bc6476c90683b06e4a67cbb5060e667983cc5220e9efa0a14e0;aloneitd.dos
85f58914021089cb36d4bc6ded172b651fe2d6794027babe7d82f9f03fece1d0;heretic.dos
90d1da7e740064a86f0a039894335d531abde255327b1c4e5459780d77ce4fa7;loom.dos
a86e5291f7de1ee1b0a97952bc1480dd578c26bfe77d918f5408e2386fb574ec;lsl1.dos
d7fb6cdb04cb9b980e1a1c9c55d63aa4473401d57b70533ab1689668c78cc70b;lsl2.dos
7526e0f07924ee669013159a9526f5a7b2ae259d31dadcefa1cc2f32748be91c;wolf3d.dos
48f7a2bdd8e1264720103cfc16b98f3f88ecb38e966093cf4e0768f28702575b;pirates.dos
67053431d0708254d0abfc9d2f28b7ef89282133de4ab0b1c53313d86fd36fa8;monkey1.dos
8115c79af033bf8018e6b2b1a2deeb692271969867877eb13db84536bca3224d;indiana1.dos
b3538a91b52abfb375b68513658848c3a5bc802afdccbf473b1c4b8721141fc0;lore.dos
c8746a485a794d92b0484e96292fb95a4adcca3c152e32a17a85abfcef58ce21;simon1.dos
4be4e26bd069258c66ffb1b212265993804a3f7c393c5951d9b05b08dff6c177;gobliins.dos
31933c55e5e09e4a441161ac93164b758a3d4c36323b7a0fe0306be31f8ead94;enchantia.dos
74c7c59340e4809dcf96d16f5398a56e84c49e4e230c7b1675718ce8e3d89513;arena.dos
ddb4b430058c0f3ca48f0376e25af91d5bb1c0fc80e8cf6a3db1eb7e3d32cb89;doom.dos
d255dc8c7a10a7fe4b9b6a9b5e8db2b095b241656041c2ada04bbe36c054b100;cruise.dos
a126c36224736185f78d0f5531d967e9734cbf51140cddbfff6f49c763ab16f8;darkseed.dos
3cac828f5c98557d6e2cd67061c3e7597999ba2411effcf311978f25ac7419c8;quake.dos
fdeadb2f377baa7aa025d787320c360b85c825cea389f7c136a54d40047c9238;descent.dos

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.
Loading…
Cancel
Save