Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/bash
#This script allows you to unpack game files for
#Indiana Johnes and His Desktop Adventures
#so you can run game under wine
#Please find unpacked game files in game/ directory
mkdir game
for fin in $(ls -1 *_);
do
fout=${fin:0:-1}
fout=${fout,,}
letter=$(head -c 10 $fin | tail -c 1)
fout="$fout$letter"
echo "unpacking $fin"
wine expand $fin game/$fout
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment