Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save whoozle/7c3dbabd6c0c1d41443963680e565512 to your computer and use it in GitHub Desktop.
Save whoozle/7c3dbabd6c0c1d41443963680e565512 to your computer and use it in GitHub Desktop.
#!/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