summaryrefslogtreecommitdiffstats
path: root/set-pwd.sh
blob: c6963f57e0e852be91e8249b6e1c94204c3e4097 (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/bin/sh
files="api/change-order.php api/export.php api/add.php api/remove.php src/data.php"

[ -z "$1" ] && echo "\$1 has to be directory where project lives" && exit 1
path="$(readlink -e "$1")"

for file in $files; do
	sed -i "s;%PWD%;$1/;" "$file"
done