get_sources.sh

скрипт для формирования недостающих тарболлов - Alexei Panov, 30.07.2011 18:51

Загрузить (1,033 КБ)

 
1
#!/bin/sh
2

    
3
# BZR_VER=`date +%Y%m%d`
4
BZR_CMD=/usr/bin/bzr
5
if [ -x $BZR_CMD ]; then
6
    echo "${BZR_CMD} found."
7
else
8
    exit 1
9
fi
10

    
11
# Get a nautilus-extenstions sources
12
$BZR_CMD branch -q lp:~itmages/itmages/itmages-nautilus-extension > /dev/null 2>&1
13

    
14
# Get a eog-plugin sources
15
$BZR_CMD branch -q lp:~itmages/itmages/itmages-eog-plugin > /dev/null 2>&1
16

    
17
# Remove .bzr
18
find . -type d -name .bzr -exec rm -rf {} \; > /dev/null 2>&1
19

    
20
# Get versions
21
NE_VERSION=`grep 'PACKAGE_VERSION' itmages-nautilus-extension/CMakeLists.txt | awk '{print $3}' | sed 's|"||g' | sed 's|)||g'`
22
EP_VERSION=`grep 'Version' itmages-eog-plugin/debian/control | grep -v '-' | awk '{print $2}'`
23

    
24
mv itmages-nautilus-extension itmages-nautilus-extension-${NE_VERSION}
25
mv itmages-eog-plugin itmages-eog-plugin-${EP_VERSION}
26

    
27
tar cfj itmages-nautilus-extension-${NE_VERSION}.tar.bz2 itmages-nautilus-extension-${NE_VERSION}
28
tar cfj itmages-eog-plugin-${EP_VERSION}.tar.bz2 itmages-eog-plugin-${EP_VERSION}
29

    
30
rm -rf itmages-nautilus-extension-${NE_VERSION} itmages-eog-plugin-${EP_VERSION}