add scripts/replate-path-in-project.sh

This commit is contained in:
Alexandre Quessy
2014-10-17 13:41:10 -04:00
parent 63e01d5285
commit c53cb753ef
+13
View File
@@ -0,0 +1,13 @@
#!/bin/bash
if [[ $# -eq 0 ]] ; then
echo "This script is useful to find and replace a path in a MapMap project file."
echo "Usage: $0 /old/path /new/path project_file.mmp"
exit 0
fi
OLDPATH=$1
NEWPATH=$2
PROJECTFILE=$3
sed -i "s|${OLDPATH}|${NEWPATH}|g" ${PROJECTFILE}