| 1 | #! /bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | |
| 3 | n=$(exprscip-shell system . . expr. $(headscip-shell system . . head. -1 debian/changelog | awkscip-shell system . . awk. '{printf $2}' | /usr/bin/wcscip-shell filesystem . . `/usr/bin/wc`. -c) - 1) |
| 4 | version=$(headscip-shell system . . head. -1 debian/changelog | awkscip-shell system . . awk. '{printf $2}' | cutscip-shell system . . cut. -b2-$n) |
| 5 | upstream_version=$(echoscip-shell system . . echo. $version | awkscip-shell system . . awk. -F "-" '{printf $1}') |
| 6 | debian_revision=$(echoscip-shell system . . echo. $version | awkscip-shell system . . awk. -F "-" '{printf $2}') |
| 7 | |
| 8 | package_branch=main-$upstream_version-$debian_revision |
| 9 | upstream_branch=l$upstream_version |
| 10 | debian_branch=debian |
| 11 | |
| 12 | gitscip-shell system . . git. br -D $package_branch 2> /dev/nullscip-shell filesystem . . `/dev/null`. |
| 13 | gitscip-shell system . . git. br $package_branch $debian_branch |
| 14 | gitscip-shell system . . git. co $package_branch |
| 15 | gitscip-shell system . . git. merge $upstream_branch -m "Merging upstream branch" |
| 16 | |
| 17 | debuildscip-shell system . . debuild. -us -uc -I.git $@ |
| 18 |