diff options
author | Steve Powell <steve@rabbitmq.com> | 2012-07-04 14:40:20 +0100 |
---|---|---|
committer | Steve Powell <steve@rabbitmq.com> | 2012-07-04 14:40:20 +0100 |
commit | a47b7dba6201972a293dd3563466ad29f834e799 (patch) | |
tree | a80e784b226b693dda24f7238defb0686a8682f2 | |
parent | c7e0a9c483e633817f05e008413aaf9241a554d2 (diff) | |
download | rabbitmq-server-a47b7dba6201972a293dd3563466ad29f834e799.tar.gz |
Make make-port-diff.sh work correctly on MacOs and Linuces
-rwxr-xr-x | packaging/macports/make-port-diff.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packaging/macports/make-port-diff.sh b/packaging/macports/make-port-diff.sh index 3eb1b9f5..ac3afa4e 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 |