summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorSteve Powell <steve@rabbitmq.com>2012-07-04 14:40:20 +0100
committerSteve Powell <steve@rabbitmq.com>2012-07-04 14:40:20 +0100
commit63477af925d226c937aee6984c6380699ede0a11 (patch)
treea80e784b226b693dda24f7238defb0686a8682f2 /packaging
parent3938ef4501bff3db21d5841d8699e41682de4055 (diff)
downloadrabbitmq-server-git-63477af925d226c937aee6984c6380699ede0a11.tar.gz
Make make-port-diff.sh work correctly on MacOs and Linuces
Diffstat (limited to 'packaging')
-rwxr-xr-xpackaging/macports/make-port-diff.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/packaging/macports/make-port-diff.sh b/packaging/macports/make-port-diff.sh
index 3eb1b9f589..ac3afa4ee5 100755
--- a/packaging/macports/make-port-diff.sh
+++ b/packaging/macports/make-port-diff.sh
@@ -14,8 +14,10 @@ mkdir -p $dir/macports $dir/rabbitmq
cd $dir/macports
svn checkout http://svn.macports.org/repository/macports/trunk/dports/net/rabbitmq-server/ 2>&1 >/dev/null
-# Clear out the svn $id tag
-sed -i -e 's|^# \$.*$|# $Id$|' rabbitmq-server/Portfile
+# Clear out the svn $id tag from the Portfile (and avoid using -i)
+portfile=rabbitmq-server/Portfile
+sed -e 's|^# \$.*$|# $Id$|' ${portfile} > ${portfile}.new
+mv ${portfile}.new ${portfile}
# Get the files from the rabbitmq.com macports repo
cd ../rabbitmq