Add better GNU/kFreeBSD support in setting ARCH in CONF.sh.

Closes: #327470
This commit is contained in:
Steve McIntyre 2006-06-08 00:26:24 +00:00
parent f3efdd5ab3
commit 0376061922
3 changed files with 32 additions and 2 deletions

15
CONF.sh
View File

@ -75,7 +75,20 @@ export OFFICIAL="Unofficial"
#export OFFICIAL="Official Beta"
# ... for arch
export ARCH=`dpkg --print-architecture`
CPU=`dpkg-architecture -qDEB_HOST_DPKG_CPU 2>/dev/null`
if [ $? -ne 0 ] ; then
CPU=`dpkg-architecture -qDEB_HOST_ARCH`
fi
KERNEL=`dpkg-architecture -qDEB_HOST_DPKG_OS 2>/dev/null`
if [ $? -ne 0 ] ; then
KERNEL=linux
fi
if [ $KERNEL = linux ] ; then
ARCH=$CPU
else
ARCH="$KERNEL-$CPU"
fi
export CPU KERNEL ARCH
# IMPORTANT : The 4 following paths must be on the same partition/device.
# If they aren't then you must set COPYLINK below to 1. This

15
debian/CONF.sh vendored
View File

@ -75,7 +75,20 @@ export OFFICIAL="Unofficial"
#export OFFICIAL="Official Beta"
# ... for arch
export ARCH=`dpkg --print-architecture`
CPU=`dpkg-architecture -qDEB_HOST_DPKG_CPU 2>/dev/null`
if [ $? -ne 0 ] ; then
CPU=`dpkg-architecture -qDEB_HOST_ARCH`
fi
KERNEL=`dpkg-architecture -qDEB_HOST_DPKG_OS 2>/dev/null`
if [ $? -ne 0 ] ; then
KERNEL=linux
fi
if [ $KERNEL = linux ] ; then
ARCH=$CPU
else
ARCH="$KERNEL-$CPU"
fi
export CPU KERNEL ARCH
# IMPORTANT : The 4 following paths must be on the same partition/device.
# If they aren't then you must set COPYLINK below to 1. This

4
debian/changelog vendored
View File

@ -47,6 +47,10 @@ debian-cd (2.2.25) UNRELEASED; urgency=low
* Move kde-desktop to end of task.list for same reason.
* Update task-full-etch to current tasksel.
[ Steve McIntyre ]
* Add better GNU/kFreeBSD support in setting ARCH in CONF.sh.
Closes: #327470
-- Joey Hess <joeyh@debian.org> Mon, 5 Jun 2006 15:09:01 -0400
debian-cd (2.2.24) unstable; urgency=low