Skip to content

Sandec fix #47

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions sandec/get_dll.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using set -euo pipefail makes bash development a little easier and more robust.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's nice, didn't know about that either

if ! [ -x "$(command -v cabextract)" ]; then
echo "cabextract not found."
exit 1;
fi

if ! [ -x "$(command -v unshield)" ]; then
echo "unshield not found."
exit 1;
fi

mkdir work_tmp;
cd work_tmp;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here's a little bash trick for you.

TMP=$(mktemp -d)
trap "rm -rf $TMP" EXIT

You'll have a temporary directory that won't collide and will automatically get cleaned up.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool :)

wget http://www.olympusamerica.com/files/oima_cckb/DigitalWavePlayerUpdate214.zip;
unzip DigitalWavePlayerUpdate214.zip;
cd Vista+AMD;
cabextract DWPUP5EN.exe;
cd Disk1;
unshield x data1.cab
cp "_v___O_____DLL_(____________)/san_dec.dll" ../../../;
cd ../../../;
rm -rf work_tmp;