Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ubuntu.sh - github.com/lintest/fb2edit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8aaf5ee4808e10733e98a4bb278d42c27a948f54 (plain)
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
#!/bin/sh

LIST="utopic trusty"

NUMBER=1

PROJECT=`cat CMakeLists.txt | grep "project(" | sed 's/.*(//' | sed 's/).*//g'`
VERSION=`cat CMakeLists.txt | grep "set(PACKAGE_VERSION" | sed 's/.* "//' | sed 's/\".*//g'`

echo 
echo "================= ${PROJECT}-${VERSION} ================="
echo 

mkdir tarball
cd tarball

cd ${PROJECT}-${VERSION}

cp -rf ../../debian .

echo "${PROJECT} (${VERSION}-squeeze${NUMBER}) stable; urgency=low" > debian/changelog
cat ../../debian/changelog | sed '1d'>> debian/changelog
debuild -S -sa

mkdir ../osc_${PROJECT}
mv ../*squeeze* ../osc_${PROJECT}
cp ../${PROJECT}_${VERSION}.orig.tar.bz2 ../osc_${PROJECT}

cat ../../debian/control | sed 's/libxml2-dev/libqtwebkit-dev, libxml2-dev/' > debian/control
for DISTRIB in $LIST;
do
  echo "${PROJECT} (${VERSION}-${DISTRIB}${NUMBER}) ${DISTRIB}; urgency=low" > debian/changelog
  cat ../../debian/changelog | sed '1d'>> debian/changelog
  debuild -S -sa
done