Build Script angepasst um arch derivate zu Unterstützen.

This commit is contained in:
Thomas Schleußner 2026-06-24 22:31:20 +02:00
parent 71266314eb
commit 8eb749f6f2
2 changed files with 4 additions and 4 deletions

View file

@ -19,7 +19,7 @@ fi
# detect distribution # detect distribution
if [ -f /etc/os-release ]; then if [ -f /etc/os-release ]; then
. /etc/os-release . /etc/os-release
DISTRO=$ID DISTRO=${ID-LIKE:-$ID}
else else
echo -e "${RED}Error: Cannot detect distribution${NC}" echo -e "${RED}Error: Cannot detect distribution${NC}"
exit 1 exit 1
@ -128,4 +128,4 @@ echo -e " - update.bin: ${WORKSPACE}/build/usk/update.bin"
USK_VERSION_LO=$(sed -n 's/#define VER_LO \([0-9]*\)/\1/p' "$USK_DIR/config.h") USK_VERSION_LO=$(sed -n 's/#define VER_LO \([0-9]*\)/\1/p' "$USK_DIR/config.h")
USK_VERSION_HI=$(sed -n 's/#define VER_HI \([0-9]*\)/\1/p' "$USK_DIR/config.h") USK_VERSION_HI=$(sed -n 's/#define VER_HI \([0-9]*\)/\1/p' "$USK_DIR/config.h")
USK_VERSION="${USK_VERSION_HI}.${USK_VERSION_LO}" USK_VERSION="${USK_VERSION_HI}.${USK_VERSION_LO}"
echo -e "${GREEN}Version: Picofly ${USK_VERSION}${NC}\n" echo -e "${GREEN}Version: Picofly ${USK_VERSION}${NC}\n"

View file

@ -12,7 +12,7 @@ echo -e "${GREEN}=== Picofly build script (multi-distro) ===${NC}\n"
# detect distribution # detect distribution
if [ -f /etc/os-release ]; then if [ -f /etc/os-release ]; then
. /etc/os-release . /etc/os-release
DISTRO=$ID DISTRO=${ID_LIKE:-$ID}
else else
echo -e "${RED}Error: Cannot detect distribution${NC}" echo -e "${RED}Error: Cannot detect distribution${NC}"
exit 1 exit 1
@ -127,4 +127,4 @@ echo -e " - update.bin: ${WORKSPACE}/build/usk/update.bin"
USK_VERSION_LO=$(sed -n 's/#define VER_LO \([0-9]*\)/\1/p' "$WORKSPACE/usk/config.h") USK_VERSION_LO=$(sed -n 's/#define VER_LO \([0-9]*\)/\1/p' "$WORKSPACE/usk/config.h")
USK_VERSION_HI=$(sed -n 's/#define VER_HI \([0-9]*\)/\1/p' "$WORKSPACE/usk/config.h") USK_VERSION_HI=$(sed -n 's/#define VER_HI \([0-9]*\)/\1/p' "$WORKSPACE/usk/config.h")
USK_VERSION="${USK_VERSION_HI}.${USK_VERSION_LO}" USK_VERSION="${USK_VERSION_HI}.${USK_VERSION_LO}"
echo -e "${GREEN}Version: Picofly ${USK_VERSION}${NC}\n" echo -e "${GREEN}Version: Picofly ${USK_VERSION}${NC}\n"