diff options
author | Georgi Kolev <shadowx@escom.bg> | 2013-11-30 16:41:39 +0100 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2013-12-02 00:58:01 -0600 |
commit | 53e171fff78509edcf85dd9fa5b6c435b2ec86a3 (patch) | |
tree | d65adc21a33e96245071cc51d9debff0da974f53 /development/gnuradio/doinst.sh | |
parent | 707ea9c67d7ff53f4c3fa547b6d341212c160c1c (diff) |
development/gnuradio: Added (toolkit for building SDRs).
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'development/gnuradio/doinst.sh')
-rw-r--r-- | development/gnuradio/doinst.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/development/gnuradio/doinst.sh b/development/gnuradio/doinst.sh new file mode 100644 index 0000000000000..19a6ff6ac8545 --- /dev/null +++ b/development/gnuradio/doinst.sh @@ -0,0 +1,13 @@ +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... +} + |