支持get-orig-source特性

Signed-off-by: gfdgd_xi <3025613752@qq.com>
This commit is contained in:
2026-04-11 18:54:21 +08:00
parent 998b5808b2
commit 4669494602
4 changed files with 10 additions and 1 deletions
@@ -48,7 +48,7 @@ do
fi fi
sleep 1 sleep 1
done done
apt install dpkg-dev sudo debian-ports-archive-keyring debian-archive-keyring devscripts -y apt install wget curl dpkg-dev sudo debian-ports-archive-keyring debian-archive-keyring devscripts -y
#neofetch #neofetch
#if [[ `arch` != "x86_64" ]]; then #if [[ `arch` != "x86_64" ]]; then
# apt source qemu # apt source qemu
@@ -82,4 +82,13 @@ do
fi fi
sleep 1 sleep 1
done done
# 从上游拉源代码
./debian/rules get-orig-source
if find . -maxdepth 1 -name "*.tar*" | grep -q .; then
# 存在上游 tar
mkdir /tmp/unpack
for archive in *.tar*; do tar -xzvf "$archive" -C /tmp/unpack; done
cp -rv /tmp/unpack/*/* . -rv
cp -rv /tmp/unpack/*/.* . -rv
fi
exit 0 exit 0
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB