| 1 |
#!sh |
| 2 |
# $Id: display_script,v 1.2 1997/04/28 12:31:25 rd Exp $ |
| 3 |
|
| 4 |
# NOTE the #! line above. There will not in general exist /bin/sh |
| 5 |
# But the acedb distribution includes sh.exe, which will be on the |
| 6 |
# path, so the form above will run that. The current distribution |
| 7 |
# doesn't include any other interpreters, so all scripts had better |
| 8 |
# be written in sh |
| 9 |
|
| 10 |
# winaceshell is also on the path, it takes arg1 and converts it into |
| 11 |
# a windows path, then gives it to the windows shell to open. |
| 12 |
# So as long as windows knows how to display .jpegs (in this case) |
| 13 |
# All is hunky-dory |
| 14 |
|
| 15 |
# The worm database seems to be schizoid about weather to include |
| 16 |
# the .jpeg extension or not, so we cover all the bases. |
| 17 |
|
| 18 |
if [ -e "$ACEDB"/pictures/$1 ] |
| 19 |
then |
| 20 |
winaceshell "$ACEDB"/pictures/$1 |
| 21 |
fi |
| 22 |
|
| 23 |
if [ -e "$ACEDB"/pictures/$1.jpeg ] |
| 24 |
then |
| 25 |
winaceshell "$ACEDB"/pictures/$1.jpeg |
| 26 |
fi |
| 27 |
|
| 28 |
|
| 29 |
if [ -e "$ACEDB"/pictures/$1.jpg ] |
| 30 |
then |
| 31 |
winaceshell "$ACEDB"/pictures/$1.jpg |
| 32 |
fi |