File: get-cpu

package info (click to toggle)
perfetto 54.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 133,812 kB
  • sloc: cpp: 338,350; python: 74,464; sql: 46,895; ansic: 18,340; javascript: 2,557; java: 2,160; sh: 1,444; yacc: 776; xml: 563; makefile: 226
file content (12 lines) | stat: -rwxr-xr-x 229 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

debian_cpu=$(dpkg-architecture -qDEB_BUILD_GNU_CPU)

case $debian_cpu in
  "i686") echo x86;;
  "x86_64") echo x64;;
  "aarch64") echo arm64;;
  "arm64") echo arm64;;
  "arm"*) echo arm;;
  *) echo $debian_cpu ;;
esac