diff options
author | Oliver Smith <osmith@sysmocom.de> | 2020-05-28 09:39:40 +0200 |
---|---|---|
committer | Oliver Smith <osmith@sysmocom.de> | 2020-05-28 09:44:36 +0200 |
commit | d45550108f41d6ba51aa13dad8301bd767469b62 (patch) | |
tree | 316336643b270bbd5b83acf52b029c3d8eaf1411 | |
parent | 21c032884bf461c6ba7f202777e2f8a50f3bf122 (diff) |
fixup 2osmith/obs-fixes
Change-Id: Ib3300bbbbf6d70722eb4f4650dbef1f7fce5e3fa
-rw-r--r-- | scripts/common-obs.sh | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/scripts/common-obs.sh b/scripts/common-obs.sh index 6b41886..b67ca7d 100644 --- a/scripts/common-obs.sh +++ b/scripts/common-obs.sh @@ -36,7 +36,7 @@ osmo_obs_prepare_conflict() { mkdir -p "$pkgname/debian/source" cd "$pkgname/debian" - # Fill control, changelog, rules + # Fill control cat << EOF > control Source: ${pkgname} Section: unknown @@ -50,18 +50,22 @@ Depends: \${misc:Depends} Architecture: any EOF printf "Conflicts: " >> control - first=0 + first=1 for i in "$@"; do - if [ "$first" -eq 0 ]; then - first=1 + if [ "$first" -eq 1 ]; then + first=0 else - printf ", " + printf ", " >> control fi printf "%s" "$i" >> control done + printf "\n" >> control cat << EOF >> control Description: Dummy package, which conflicts with: $@ EOF + cat control + + # Fill changelog cat << EOF > changelog ${pkgname} (${pkgver}) unstable; urgency=medium @@ -69,6 +73,8 @@ ${pkgname} (${pkgver}) unstable; urgency=medium -- Oliver Smith <osmith@sysmocom.de> Thu, 13 Jun 2019 12:50:19 +0200 EOF + + # Fill rules cat << EOF > rules #!/usr/bin/make -f %: |