Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
7847a665
Commit
7847a665
authored
Apr 05, 2025
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
distr-info: add --arch-arch (print arch in ArchLinux style)
parent
ab0b70c7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
1 deletion
+25
-1
distr_info
bin/distr_info
+25
-1
No files found.
bin/distr_info
View file @
7847a665
...
@@ -789,7 +789,8 @@ echo "$DIST_ARCH"
...
@@ -789,7 +789,8 @@ echo "$DIST_ARCH"
get_debian_arch
()
get_debian_arch
()
{
{
local arch
=
"
$(
get_arch
)
"
local arch
=
"
$1
"
[
-n
"
$arch
"
]
||
arch
=
"
$(
get_arch
)
"
case
$arch
in
case
$arch
in
'x86'
)
'x86'
)
arch
=
'i386'
;;
arch
=
'i386'
;;
...
@@ -797,6 +798,20 @@ get_debian_arch()
...
@@ -797,6 +798,20 @@ get_debian_arch()
arch
=
'amd64'
;;
arch
=
'amd64'
;;
'aarch64'
)
'aarch64'
)
arch
=
'arm64'
;;
arch
=
'arm64'
;;
'armhf'
)
arch
=
'armv7l'
;;
esac
echo
"
$arch
"
}
get_arch_arch
()
{
local arch
local arch
=
"
$1
"
[
-n
"
$arch
"
]
||
arch
=
"
$(
get_arch
)
"
case
$arch
in
'x86_64'
)
arch
=
'x64'
;;
esac
esac
echo
"
$arch
"
echo
"
$arch
"
}
}
...
@@ -816,6 +831,12 @@ get_distro_arch()
...
@@ -816,6 +831,12 @@ get_distro_arch()
return
return
;;
;;
esac
esac
case
"
$(
pkgmanager
)
"
in
pacman
)
get_arch_arch
return
;;
esac
echo
"
$arch
"
echo
"
$arch
"
}
}
...
@@ -1143,6 +1164,9 @@ case "$1" in
...
@@ -1143,6 +1164,9 @@ case "$1" in
--debian-arch
)
--debian-arch
)
get_debian_arch
get_debian_arch
;;
;;
--arch-arch
)
get_arch_arch
;;
--glibc-version
)
--glibc-version
)
get_glibc_version
get_glibc_version
;;
;;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment