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

ubuntu.sh - github.com/lintest/myrulib.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 236d81e4a8c398f58677d56a313d677f1d96086f (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#!/bin/sh

LIST="saucy raring quantal precise"

NUMBER=1

VERSION=`cat configure | grep PACKAGE_VERSION= | sed "s/.*=//" | sed "s/'//g"`  

echo 
echo "============================================================"
echo 

mkdir tarball
cd tarball

cd myrulib-$VERSION

rm -rf debian
mkdir debian
mkdir debian/source

for FILENAME in changelog compat copyright dirs docs menu;
do
  cp ../../debian/$FILENAME debian
done

cp ../../debian/source/format debian/source
cp ../../debian/myrulib/control debian
cp ../../debian/myrulib/rules debian

for DISTRIB in $LIST;
do
  echo "myrulib ($VERSION-$DISTRIB$NUMBER) $DISTRIB; urgency=low" > debian/changelog
  cat ../../debian/changelog | sed '1d'>> debian/changelog
  debuild -S -sa
done

cd ..

echo 
echo "============================================================"
echo 

cd myrulib-$VERSION

echo "myrulib ($VERSION-squeeze$NUMBER) stable; urgency=low" > debian/changelog
cat ../../debian/changelog | sed '1d'>> debian/changelog

debuild -S -sa

mkdir ../osc_myrulib
mv ../*squeeze* ../osc_myrulib
cp ../myrulib_$VERSION.orig.tar.bz2 ../osc_myrulib

echo "Source: myrulib" > debian/control
cat ../../debian/myrulib-cr/control | sed '1d'>> debian/control
cp ../../debian/myrulib-cr/rules debian

debuild -S -sa

mkdir ../osc_myrulib-cr
cp ../*squeeze* ../osc_myrulib-cr
cp ../myrulib_$VERSION.orig.tar.bz2 ../osc_myrulib-cr

cd ..

echo 
echo "============================================================"
echo 

cd myrulib-cr-$VERSION

rm -rf debian
mkdir debian
mkdir debian/source

for FILENAME in changelog compat copyright dirs docs menu;
do
  cp ../../debian/$FILENAME debian
done

cp ../../debian/source/format debian/source
cp ../../debian/myrulib-cr/control debian
cp ../../debian/myrulib-cr/rules debian

for DISTRIB in $LIST;
do
  echo "myrulib-cr ($VERSION-$DISTRIB$NUMBER) $DISTRIB; urgency=low" > debian/changelog
  cat ../../debian/changelog | sed '1d'>> debian/changelog
  debuild -S -sa
done