Rename all setup0.h files to setup.h in git-based release script.
We also need to rename wx/univ/setup0.h and wx/gtk/setup0.h and it probably doesn't hurt to rename all the other ones even if though they're unused anyhow. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71958 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -48,17 +48,23 @@ cleanup
|
|||||||
|
|
||||||
git archive --prefix=$prefix/ HEAD | (cd ..; tar x)
|
git archive --prefix=$prefix/ HEAD | (cd ..; tar x)
|
||||||
cd ..
|
cd ..
|
||||||
mv $prefix/include/wx/msw/setup0.h $prefix/include/wx/msw/setup.h
|
# All setup0.h files are supposed to be renamed to just setup.h when checked
|
||||||
|
# out and in the distribution.
|
||||||
|
find $prefix/include/wx -type f -name setup0.h | while read f; do
|
||||||
|
mv $f ${f%0.h}.h
|
||||||
|
done
|
||||||
|
|
||||||
tar cjf $prefix.tar.bz2 $prefix
|
tar cjf $prefix.tar.bz2 $prefix
|
||||||
|
|
||||||
cd $prefix
|
cd $prefix
|
||||||
set +x
|
set +x
|
||||||
for f in `cat ../eol-native`; do
|
for f in `cat ../eol-native`; do
|
||||||
if [ $f == "include/wx/msw/setup0.h" ]; then
|
case $f in
|
||||||
# we renamed this file above so adjust
|
*/setup0.h)
|
||||||
f="include/wx/msw/setup.h"
|
# we renamed this file above so adjust
|
||||||
fi
|
f=${f%0.h}.h
|
||||||
|
;;
|
||||||
|
esac
|
||||||
unix2dos -q $f
|
unix2dos -q $f
|
||||||
done
|
done
|
||||||
set -x
|
set -x
|
||||||
|
Reference in New Issue
Block a user