Commit 56003c81 authored by kyodev's avatar kyodev

maj

parent 69a16cd4
Pipeline #130820 passed with stages
in 24 seconds
# getXfox
![version: 4.18.0](https://img.shields.io/badge/version-4.18.0-blue.svg?longCache=true&style=for-the-badge)
![version: 4.20.0](https://img.shields.io/badge/version-4.20.0-blue.svg?longCache=true&style=for-the-badge)
![bash langage](https://img.shields.io/badge/bash-4-brightgreen.svg?longCache=true&style=for-the-badge)
![license LPRAB / WTFPL](https://img.shields.io/badge/license-LPRAB%20%2F%20WTFPL-blue.svg?longCache=true&style=for-the-badge)
......
......@@ -15,13 +15,11 @@ Objectif: récupérer la dernière version du script perl `rmadison` sans instal
```shell
su
wget -O /usr/bin/rmadison "https://anonscm.debian.org/git/collab-maint/devscripts.git/plain/scripts/rmadison.pl"
wget -O /usr/bin/rmadison "https://salsa.debian.org/debian/devscripts/raw/master/scripts/rmadison.pl"
chmod +x /usr/bin/rmadison
exit
```
* url miroir: <https://github.com/Debian/devscripts/blob/master/scripts/rmadison.pl>
## utilisation
......
......@@ -17,7 +17,7 @@ contact="IRC freenode.net ##sdeb@freenode.net ou https://framagit.org/sdeb/getIn
# détecte architecture système, assign $fu_archi: 32bits, i686 | 64bits, amd64 (x86_64)
# return 1 on unknown architecture
# remarque, debian: dpkg --print-architecture affiche i386
f__architecture(){ # 14/O6/2018
f__architecture0(){ # 14/O6/2018
x_architecture=1
case "$(uname -m)" in
......@@ -32,6 +32,25 @@ f__architecture(){ # 14/O6/2018
esac
}
# détecte architecture système, assign $fu_archi: 32bits, i686 | 64bits, amd64 (x86_64)
# return 1 on unknown architecture
# remarque, debian: dpkg --print-architecture affiche i386
# armv8 platforms: aarch64, raspi: armv6l
f__architecture(){ # 31/08/2018
x_architecture=1
case "$(getconf LONG_BIT)" in
64 ) fu_archi="64bits, amd64 (x86_64)";;
32 ) fu_archi="32bits, i686";;
* )
case "$(uname -m)" in
*64 ) fu_archi="64bits, amd64 (x86_64)";;
*86 ) fu_archi="32bits, i686";;
*) return 1
esac ;;
esac
}
# détermination dirname/basename avec suivi lien éventuel, assigne $dirscript (chemin final absolu) & $basescript
# si $1 path to file, assigne $basename & $dirname & $extname
f__basedirname(){ # 06/07/2018
......@@ -53,7 +72,7 @@ f__clear_ligne(){ # 26/06/2018
nb=${nb:=1}
for (( xyz=1; xyz <= nb; xyz++ )); do
tput cuu1 # une ligne plus haut
tput cuu1 # une ligne plus haut
tput dl1 # efface ligne
done
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment