diff options
author | Eric Schultz <eric at schultzter dot ca> | 2012-05-13 09:04:29 -0400 |
---|---|---|
committer | dsomero <xgizzmo@slackbuilds.org> | 2012-05-13 09:04:29 -0400 |
commit | 8c36346f47098579bb6942f60e8f5ac32832a900 (patch) | |
tree | 81f8abf2322d8a22d5d82a9f03de8e35a200a1d3 /development/google-go-lang/doinst.sh | |
parent | 915e263d03e89388db823e812282e3cdae323a05 (diff) | |
download | slackbuilds-8c36346f47098579bb6942f60e8f5ac32832a900.tar.gz |
develpoment/google-go-lang: Added (Go Lang kit with gc tool chain)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'development/google-go-lang/doinst.sh')
-rw-r--r-- | development/google-go-lang/doinst.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/development/google-go-lang/doinst.sh b/development/google-go-lang/doinst.sh new file mode 100644 index 0000000000..87208016c0 --- /dev/null +++ b/development/google-go-lang/doinst.sh @@ -0,0 +1,15 @@ +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/go.csh.new +config etc/profile.d/go.sh.new |