Last active
May 15, 2016 18:05
-
-
Save whoozle/7c3dbabd6c0c1d41443963680e565512 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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