annotate rogue4/install-sh @ 82:f11eeafc6568

srogue: don't store machine-dependent metadata in the savefile. Super-Rogue, like Rogue V4, stored data of machine-dependent length in the savefile, to prevent cheating. This made saved games non-portable. Also deleted was a check that used this data, and prevented restoring savefiles from backup. This change BREAKS SAVEFILE COMPATIBILITY, but old files can be converted by removing the block at offset 0x1e with length sizeof(ino_t) + sizeof(dev_t) + 2 * sizeof(time_t). That seems to be 0x14 on i686 and 0x20 on x86_64.
author John "Elwin" Edwards
date Tue, 06 Aug 2013 19:02:58 -0700
parents a1dc75e38e73
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
51
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
1 #!/bin/sh
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
2 # install - install a program, script, or datafile
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
3
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
4 scriptversion=2009-04-28.21; # UTC
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
5
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
6 # This originates from X11R5 (mit/util/scripts/install.sh), which was
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
7 # later released in X11R6 (xc/config/util/install.sh) with the
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
8 # following copyright and license.
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
9 #
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
10 # Copyright (C) 1994 X Consortium
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
11 #
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
12 # Permission is hereby granted, free of charge, to any person obtaining a copy
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
13 # of this software and associated documentation files (the "Software"), to
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
14 # deal in the Software without restriction, including without limitation the
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
15 # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
16 # sell copies of the Software, and to permit persons to whom the Software is
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
17 # furnished to do so, subject to the following conditions:
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
18 #
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
19 # The above copyright notice and this permission notice shall be included in
a1dc75e38e73 rogue4: ported to autoconf.
elwin
parents:
diff changeset
20 # all copies or substantial portions of the Software.