forked from OpenDroneMap/micmac
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mk_ubuntu_src.sh
executable file
·57 lines (46 loc) · 1.64 KB
/
mk_ubuntu_src.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
MICMAC_BASE_DIR=micmac-1.0
if [ ! -f bin/mm3d ]
then
echo "no bin/mm3d found"
exit 1
fi
#~ ARCH=$(bin/mm3d CheckDependencies version)
#~ REV=$(bin/mm3d CheckDependencies rev)
REV=$(hg identify --num)
if [[ "$REV" == *"+" ]]
then
echo "repository has uncommitted changes: removing +"
REV="${REV%?}"
fi
TARBALL=../micmac-1.0.$REV.tar.gz
echo "removing [$TARBALL]"
rm -f $TARBALL
echo "removing [$MICMAC_BASE_DIR]"
rm -fr $MICMAC_BASE_DIR
mkdir $MICMAC_BASE_DIR
mkdir $MICMAC_BASE_DIR/bin
cp bin/* $MICMAC_BASE_DIR/bin
mkdir $MICMAC_BASE_DIR/binaire-aux
cp -r binaire-aux/linux $MICMAC_BASE_DIR/binaire-aux/linux
mkdir $MICMAC_BASE_DIR/Documentation
cp Documentation/DocMicMac.pdf $MICMAC_BASE_DIR/Documentation
mkdir $MICMAC_BASE_DIR/InterfaceCEREMA
cp InterfaceCEREMA/AperoDeDenis.py $MICMAC_BASE_DIR/InterfaceCEREMA
cp InterfaceCEREMA/logoCerema.jpg $MICMAC_BASE_DIR/InterfaceCEREMA
cp InterfaceCEREMA/logoIGN.jpg $MICMAC_BASE_DIR/InterfaceCEREMA
cp InterfaceCEREMA/Notice\ Installation\ interface\ graphique\ MicMac.pdf $MICMAC_BASE_DIR/InterfaceCEREMA
mkdir $MICMAC_BASE_DIR/CodeExterne
cp -r CodeExterne/ANN $MICMAC_BASE_DIR/CodeExterne
cp -r CodeExterne/Poisson $MICMAC_BASE_DIR/CodeExterne
cp -r CodeExterne/rnx2rtkp $MICMAC_BASE_DIR/CodeExterne
cp -r include $MICMAC_BASE_DIR
rm -fr $MICMAC_BASE_DIR/include/StdAfx.h.gch
echo $REV >$MICMAC_BASE_DIR/include/rev
cp -r CodeGenere $MICMAC_BASE_DIR
cp -r data $MICMAC_BASE_DIR
cp -r ExtDataPrep $MICMAC_BASE_DIR
cp -r fdsc $MICMAC_BASE_DIR
cp -r src $MICMAC_BASE_DIR
cp CMakeLists.txt COPYING LISEZMOI precompiled_headers.cmake README $MICMAC_BASE_DIR/
tar czf $TARBALL $MICMAC_BASE_DIR
rm -fr $MICMAC_BASE_DIR