File: build_injeqt.sh

package info (click to toggle)
injeqt 1.1.0-1.1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 980 kB
  • ctags: 1,581
  • sloc: cpp: 8,122; ansic: 19; sh: 15; makefile: 4
file content (18 lines) | stat: -rwxr-xr-x 578 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#! /bin/sh

n=$(expr $(head -1 debian/changelog | awk '{printf $2}' | /usr/bin/wc -c) - 1)
version=$(head -1 debian/changelog | awk '{printf $2}' | cut -b2-$n)
upstream_version=$(echo $version | awk -F "-" '{printf $1}')
debian_revision=$(echo $version | awk -F "-" '{printf $2}')

package_branch=main-$upstream_version-$debian_revision
upstream_branch=l$upstream_version
debian_branch=debian

git br -D $package_branch 2> /dev/null
git br $package_branch $debian_branch
git co $package_branch
git merge $upstream_branch -m "Merging upstream branch"

debuild -us -uc -I.git $@