mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-17 00:09:36 -04:00
replacev2.sh: add file renames
This commit is contained in:
parent
d4bd17615b
commit
6306fb8a9f
@ -38,6 +38,29 @@ do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
find $codepaths \( -name "*v2*.h" -o -name "*v2*.cpp" -o -name "*v2*.sip" \) -type f | while read f; do
|
||||||
|
s=${f##*/}
|
||||||
|
d=${s/v2/}
|
||||||
|
echo "FIND $d"
|
||||||
|
if [ $(find $codepaths -name "$d" -print | wc -l) -gt 0 ]; then
|
||||||
|
echo "$f vs $b"
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "MV $f ${f/v2/}"
|
||||||
|
git mv "$f" "${f/v2/}"
|
||||||
|
|
||||||
|
case "$s" in
|
||||||
|
*.sip)
|
||||||
|
echo "s#\b$s\b#$d#g;" >>$r
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
echo "s#\b$s\b#$d#g;" >>$r
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
echo "API breaks logged to: $d"
|
echo "API breaks logged to: $d"
|
||||||
echo "Skipped V2 symbols: $s"
|
echo "Skipped V2 symbols: $s"
|
||||||
echo "Replacing from $r"
|
echo "Replacing from $r"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user