File: write-problems.sh

package info (click to toggle)
openjdk-21 21.0.10%2B7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 823,268 kB
  • sloc: java: 5,638,850; xml: 1,643,607; cpp: 1,298,242; ansic: 421,494; asm: 404,850; objc: 21,018; sh: 15,085; javascript: 11,217; python: 6,895; makefile: 2,367; perl: 357; awk: 351; sed: 172; jsp: 24
file content (13 lines) | stat: -rwxr-xr-x 416 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

problem_list=$1
upstream_problems=$2

cat ${upstream_problems} > ${problem_list}
distrel=`lsb_release --codename --short`
host_arch="${DEB_HOST_ARCH:-$(dpkg --print-architecture)}"

grep -e ${host_arch} -e "arch-all" debian/tests/problems.csv | \
  grep -e ${distrel} -e "release-all" | \
  grep -e "openjdk-21" | \
  awk -F',|:' '{gsub(/ /, "", $2); print $2" 000000 generic-all" }' >> ${problem_list}