mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-06-16 12:33:19 +02:00
add scripts/replate-path-in-project.sh
This commit is contained in:
Executable
+13
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user