Révision 3086
tmp/org.txm.setups/pushTXMExtUpdateToGIT.sh (revision 3086) | ||
---|---|---|
3 | 3 |
if [ ! $# -eq 2 ] |
4 | 4 |
then |
5 | 5 |
echo "** Error: called with $# args. usage: 'pushTXMExtUpdateToGIT.sh VERSION LEVEL'" |
6 |
echo "** eg ./pushTXMUpdateToGIT.sh 0.8.1 alpha" |
|
6 |
echo "** eg ./pushTXMExtUpdateToGIT.sh 0.8.1 alpha"
|
|
7 | 7 |
exit 1 |
8 | 8 |
fi |
9 | 9 |
|
10 |
echo "SCRIPT NOT FINISHED" |
|
11 |
exit 1 |
|
12 |
|
|
13 | 10 |
CURRENTPATH="$(dirname $(realpath $0))" |
14 | 11 |
echo "PATH='$PATH'" |
15 | 12 |
VERSION=$1 |
... | ... | |
20 | 17 |
TXMGITLOCAL="dist/$VERSION/ext/$LEVEL" |
21 | 18 |
TXMGIT=$TXMGITROOT/$TXMGITLOCAL |
22 | 19 |
|
20 |
mkdir -p $TXMGIT |
|
21 |
|
|
22 |
echo "TXM GIT directory: $TXMGIT" |
|
23 |
|
|
23 | 24 |
if [ ! -d "$TXMGIT" ]; then |
24 | 25 |
echo "** Error the GIT directory does not exists: $TXMGIT" |
25 | 26 |
exit 1; |
26 | 27 |
fi |
27 | 28 |
|
28 |
if [ ! -d "$CURRENTPATH/exportRCP/repository" ]; then |
|
29 |
DIRECTORYTOCOPY="TXMReleasePlugins.site" |
|
30 |
if [ "$LEVEL" = "dev" ]; then |
|
31 |
DIRECTORYTOCOPY="TXMDevPlugins.site" |
|
32 |
fi |
|
33 |
if [ "$LEVEL" = "alpha" ]; then |
|
34 |
DIRECTORYTOCOPY="TXMAlphaPlugins.site" |
|
35 |
fi |
|
36 |
if [ "$LEVEL" = "beta" ]; then |
|
37 |
DIRECTORYTOCOPY="TXMBetaPlugins.site" |
|
38 |
fi |
|
39 |
|
|
40 |
DIRECTORYTOCOPY="$CURRENTPATH/../$DIRECTORYTOCOPY" |
|
41 |
if [ ! -d "$DIRECTORYTOCOPY" ]; then |
|
29 | 42 |
echo "** Error: no TXM repository build found: $CURRENTPATH/exportRCP/repository" |
30 | 43 |
exit 1; |
31 | 44 |
fi |
32 | 45 |
|
33 |
echo "Preparing update files..."
|
|
46 |
echo "Directory to copy: $DIRECTORYTOCOPY"
|
|
34 | 47 |
|
35 |
MACOSXBUILD=`ls TXM_*_MacOSX/Applications/TXM-*.app/Contents/MacOS/TXM|tail -1` |
|
36 |
if [ "$MACOSXBUILD" = "" ]; then |
|
37 |
echo "Error: no MAc OS X build. Call BuildMacOSX before" |
|
38 |
return |
|
39 |
fi |
|
40 |
|
|
41 |
echo "Fixing Mac OS X binary archive..." |
|
42 |
cp -r `ls -d TXM_*_MacOSX/Applications/TXM-*.app/Contents/MacOS|tail -1` . |
|
43 |
zip `ls exportRCP/repository/binary/org.txm.rcp.app_root.cocoa.macosx.x86_64_*|tail -1` -d MacOS |
|
44 |
zip `ls exportRCP/repository/binary/org.txm.rcp.app_root.cocoa.macosx.x86_64_*|tail -1` -ur MacOS |
|
45 |
rm -r MacOS |
|
46 |
|
|
47 | 48 |
echo "Preparing GIT push..." |
48 | 49 |
pushd $TXMGIT |
49 | 50 |
|
... | ... | |
62 | 63 |
|
63 | 64 |
pwd |
64 | 65 |
echo "cp new build..." |
65 |
cp -rf $CURRENTPATH/exportRCP/repository/* .
|
|
66 |
cp -rf $DIRECTORYTOCOPY/* .
|
|
66 | 67 |
|
67 | 68 |
echo "git add commit push..." |
68 | 69 |
git add --all . |
Formats disponibles : Unified diff