summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/get-metadata.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/get-metadata.sh b/scripts/get-metadata.sh
index 39e401c2..913bda72 100755
--- a/scripts/get-metadata.sh
+++ b/scripts/get-metadata.sh
@@ -22,6 +22,12 @@ EOF
exit 1
fi
+if [ `uname -s` == "Darwin" ]; then
+ SEDI='sed -i "" '
+else
+ SEDI='sed -i'
+fi
+
script_cwd=`dirname "$0"`
if test -d swamid-2.0 ; then
echo "Moving into swamid-2.0/"
@@ -69,7 +75,7 @@ case $x in
read x
case $x in
Y|y|"")
- sed -i "s;^</md:EntitiesDescriptor>; <xi:include href=\"swamid-2.0/$entityidfn\"/>\n&;" ../swamid-sp-2.0.mxml
+ $SEDI "s;^</md:EntitiesDescriptor>; <xi:include href=\"swamid-2.0/$entityidfn\"/>\n&;" ../swamid-sp-2.0.mxml
echo --
tail -n 10 ../swamid-sp-2.0.mxml | sed 's/^/ /'
echo --