mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Add property order which we use to sort releases historically
This commit is contained in:
1
config/distributions/bookworm/order
Normal file
1
config/distributions/bookworm/order
Normal file
@@ -0,0 +1 @@
|
|||||||
|
4
|
||||||
1
config/distributions/bullseye/order
Normal file
1
config/distributions/bullseye/order
Normal file
@@ -0,0 +1 @@
|
|||||||
|
3
|
||||||
1
config/distributions/buster/order
Normal file
1
config/distributions/buster/order
Normal file
@@ -0,0 +1 @@
|
|||||||
|
1
|
||||||
1
config/distributions/focal/order
Normal file
1
config/distributions/focal/order
Normal file
@@ -0,0 +1 @@
|
|||||||
|
2
|
||||||
1
config/distributions/jammy/order
Normal file
1
config/distributions/jammy/order
Normal file
@@ -0,0 +1 @@
|
|||||||
|
5
|
||||||
1
config/distributions/noble/order
Normal file
1
config/distributions/noble/order
Normal file
@@ -0,0 +1 @@
|
|||||||
|
6
|
||||||
1
config/distributions/oracular/order
Normal file
1
config/distributions/oracular/order
Normal file
@@ -0,0 +1 @@
|
|||||||
|
8
|
||||||
1
config/distributions/sid/order
Normal file
1
config/distributions/sid/order
Normal file
@@ -0,0 +1 @@
|
|||||||
|
9
|
||||||
1
config/distributions/trixie/order
Normal file
1
config/distributions/trixie/order
Normal file
@@ -0,0 +1 @@
|
|||||||
|
7
|
||||||
@@ -174,7 +174,7 @@ function compile_armbian-bsp-cli() {
|
|||||||
|
|
||||||
# copy distribution support and upgrade status
|
# copy distribution support and upgrade status
|
||||||
# this information is used in motd to show status and within armbian-config to perform upgrades
|
# this information is used in motd to show status and within armbian-config to perform upgrades
|
||||||
local releases=($(find ${SRC}/config/distributions -mindepth 1 -maxdepth 1 -type d))
|
local releases=($(find ${SRC}/config/distributions -iname '*order*' -exec echo {} \; -exec cat {} \; | xargs -n2 -d'\n' | sort -nk2 | sed "s/\/order.*//g"))
|
||||||
for i in "${releases[@]}"; do
|
for i in "${releases[@]}"; do
|
||||||
echo "$(echo $i | sed 's/.*\///')=$(cat $i/support)$(echo ";upgrade" | sed 's/.*\///')=$(cat $i/upgrade)" >> "${destination}"/etc/armbian-distribution-status
|
echo "$(echo $i | sed 's/.*\///')=$(cat $i/support)$(echo ";upgrade" | sed 's/.*\///')=$(cat $i/upgrade)" >> "${destination}"/etc/armbian-distribution-status
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user