blob: d7f0c394e52e23b9e6cca2ef9e479892f2cdfd13 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/sh
IN=$1
head -n 2 $IN
cat <<EOF
set PR=%~dp0..\\
set PP=%PR:\\=/%
EOF
PP="D:/alive_pkg/lua/"
PR=${PP//\//\\\\}\\\\?
tail -n 2 $IN | \
sed -r "s|${PR}|%PR%|g" | \
sed "s|${PP}|%PP%|g"
|