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