#!/bin/sh tce-load -iwl compiletc DestinysDirectory="/i686/home/tc/Downloads/" mkdir -p "$DestinysDirectory" cd "$DestinysDirectory" wget -c "https://github.com/jpiechowka/xtea-file-encryptor/archive/refs/heads/master.zip" unzip master.zip cd xtea-file-encryptor-master/src/ ContentOfXTEA=`sed 's/#include /#include \n#include /g' XTEA.cpp` echo "$ContentOfXTEA" > XTEA.cpp g++ -o XTEA XTEA.cpp mkdir -p $DestinysDirectory/XTEA/usr/local/share/doc/XTEA mkdir -p $DestinysDirectory/XTEA/usr/local/bin cp XTEA $DestinysDirectory/XTEA/usr/local/bin cp ../LICENSE $DestinysDirectory/XTEA/usr/local/share/doc/XTEA cd ../../ chmod a+x XTEA/usr/local/bin/XTEA mksquashfs XTEA XTEA.tcz md5sum XTEA.tcz > XTEA.tcz.md5.txt submitqc --libs --strip