slackbuilds_ponce/development/google-appengine-pysdk/doinst.sh
Eric Schultz 9e96c07b3d development/google-appengine-pysdk: Updated for version 1.6.2.
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
2012-03-29 10:16:27 -05:00

15 lines
413 B
Bash

config() {
NEW="$1"
OLD="$(dirname $NEW)/$(basename $NEW .new)"
# If there's no config file by that name, mv it over:
if [ ! -r $OLD ]; then
mv $NEW $OLD
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
# toss the redundant copy
rm $NEW
fi
# Otherwise, we leave the .new copy for the admin to consider...
}
config etc/profile.d/gae.csh.new
config etc/profile.d/gae.sh.new