Statistics
| Revision:

root / tmp / org.txm.setups / setSetupsVersion.sh @ 1657

History | View | Annotate | Download (2.6 kB)

1 728 mdecorde
2 728 mdecorde
#set setups version
3 728 mdecorde
VERSION=`cat VERSION`
4 728 mdecorde
echo "setting setups version in ..."
5 728 mdecorde
6 728 mdecorde
# set Linux setup version
7 728 mdecorde
8 728 mdecorde
echo "shared/debian/DEBIAN/config"
9 728 mdecorde
find "shared/debian/DEBIAN/config" -type f -exec sed -i "s/^db_title \"TXM .*$/db_title \"TXM $VERSION installer\"/g" {} \;
10 728 mdecorde
if [ $? != 0 ]; then
11 728 mdecorde
	echo "** setting setups vesion failed at linux setup : config"
12 728 mdecorde
	exit 1;
13 728 mdecorde
fi
14 728 mdecorde
15 728 mdecorde
echo "shared/debian/DEBIAN/control"
16 728 mdecorde
find "shared/debian/DEBIAN/control" -type f -exec sed -i "s/^Version: .*$/Version: $VERSION/g" {} \;
17 728 mdecorde
if [ $? != 0 ]; then
18 728 mdecorde
	echo "** setting setups vesion failed at linux setup : control"
19 728 mdecorde
	exit 1;
20 728 mdecorde
fi
21 728 mdecorde
22 728 mdecorde
find "shared/debian/DEBIAN/control" -type f -exec sed -i "s/^Description: TXM [^ ]* : /Description: TXM $VERSION : /g" {} \;
23 728 mdecorde
if [ $? != 0 ]; then
24 728 mdecorde
	echo "** setting setups vesion failed at linux setup : control2"
25 728 mdecorde
	exit 1;
26 728 mdecorde
fi
27 728 mdecorde
28 728 mdecorde
echo "shared/debian/usr/share/applications/TXM.desktop"
29 728 mdecorde
find "shared/debian/usr/share/applications/TXM.desktop" -type f -exec sed -i "s/^Name=TXM .*$/Name=TXM $VERSION/g" {} \;
30 728 mdecorde
if [ $? != 0 ]; then
31 728 mdecorde
	echo "** setting setups vesion failed at linux setup : TXM.desktop"
32 728 mdecorde
	exit 1;
33 728 mdecorde
fi
34 728 mdecorde
find "shared/debian/usr/share/applications/TXM.desktop" -type f -exec sed -i "s/^Version=.*$/Version=$VERSION/g" {} \;
35 728 mdecorde
if [ $? != 0 ]; then
36 728 mdecorde
	echo "** setting setups vesion failed at linux setup : TXM.desktop"
37 728 mdecorde
	exit 1;
38 728 mdecorde
fi
39 728 mdecorde
40 728 mdecorde
echo "shared/debian/usr/share/applications/TXM debug.desktop"
41 728 mdecorde
find "shared/debian/usr/share/applications/TXM debug.desktop" -type f -exec sed -i "s/^Name=TXM .*$/Name=TXM $VERSION Debug/g" {} \;
42 728 mdecorde
if [ $? != 0 ]; then
43 728 mdecorde
	echo "** setting setups vesion failed at linux setup : TXM debug.desktop"
44 728 mdecorde
	exit 1;
45 728 mdecorde
fi
46 728 mdecorde
find "shared/debian/usr/share/applications/TXM debug.desktop" -type f -exec sed -i "s/^Version=.*$/Version=$VERSION/g" {} \;
47 728 mdecorde
if [ $? != 0 ]; then
48 728 mdecorde
	echo "** setting setups vesion failed at linux setup : TXM debug.desktop"
49 728 mdecorde
	exit 1;
50 728 mdecorde
fi
51 728 mdecorde
52 728 mdecorde
# set MacOSX setup version
53 728 mdecorde
54 728 mdecorde
echo "shared/mac/BUILDPKG.pmdoc/index.xml $VERSION"
55 728 mdecorde
find "shared/mac/BUILDPKG.pmdoc/index.xml" -type f -exec sed -i "s#<title>TXM .\..\..</title>#<title>TXM $VERSION</title>#g" {} \;
56 728 mdecorde
if [ $? != 0 ]; then
57 728 mdecorde
	echo "** setting setups vesion failed at macosx setup 1"
58 728 mdecorde
	exit 1;
59 728 mdecorde
fi
60 728 mdecorde
61 728 mdecorde
# set Windows setup version
62 728 mdecorde
63 728 mdecorde
echo "shared/win/txm.nsi"
64 728 mdecorde
find "shared/win/txm.nsi" -type f -exec sed -i "s/^Name \"TXM .*$/Name \"TXM $VERSION\"/g" {} \;
65 728 mdecorde
if [ $? != 0 ]; then
66 728 mdecorde
	echo "** setting setups vesion failed at windows setup 1"
67 728 mdecorde
	exit 1;
68 728 mdecorde
fi
69 728 mdecorde
find "shared/win/txm.nsi" -type f -exec sed -i "s/^OutFile \"TXM_.*$/OutFile \"TXM_${VERSION}_Win64_installer.exe\"/g" {} \;
70 728 mdecorde
if [ $? != 0 ]; then
71 728 mdecorde
	echo "** setting setups vesion failed at windows setup 2"
72 728 mdecorde
	exit 1;
73 728 mdecorde
fi