Copy kconfigs and mangle path in spec
svn path=/trunk/; revision=573
This commit is contained in:
parent
1199ff88ac
commit
117f098842
3 changed files with 22 additions and 9 deletions
|
@ -2,6 +2,10 @@
|
||||||
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
|
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
|
||||||
# $Id$
|
# $Id$
|
||||||
|
|
||||||
|
04 Sep 2008; Andrew Gaffney <agaffney@gentoo.org> catalyst-auto,
|
||||||
|
catalyst-auto-amd64.conf:
|
||||||
|
Copy kconfigs and mangle path in spec
|
||||||
|
|
||||||
04 Sep 2008; Andrew Gaffney <agaffney@gentoo.org> catalyst-auto:
|
04 Sep 2008; Andrew Gaffney <agaffney@gentoo.org> catalyst-auto:
|
||||||
Exit if snapshot creation fails
|
Exit if snapshot creation fails
|
||||||
|
|
||||||
|
|
|
@ -93,15 +93,12 @@ if [ -d "${TMPDIR}" ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! mkdir -p "${TMPDIR}/specs"; then
|
for i in ${TMPDIR} ${TMPDIR}/specs ${TMPDIR}/kconfig ${TMPDIR}/log; do
|
||||||
echo "Couldn't create temp spec dir at ${TMPDIR}/specs!"
|
if ! mkdir -p "${i}"; then
|
||||||
exit 1
|
echo "Couldn't create dir ${i}!"
|
||||||
fi
|
exit 1
|
||||||
|
fi
|
||||||
if ! mkdir -p "${TMPDIR}/log"; then
|
done
|
||||||
echo "Couldn't create log dir at ${TMPDIR}/log!"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
cd ${SPECS_DIR}
|
cd ${SPECS_DIR}
|
||||||
|
|
||||||
|
@ -109,6 +106,9 @@ for i in ${SPECS}; do
|
||||||
cp --parents ${i} ${TMPDIR}/specs/
|
cp --parents ${i} ${TMPDIR}/specs/
|
||||||
done
|
done
|
||||||
|
|
||||||
|
cd ${KCONFIG_DIR}
|
||||||
|
find -type f -exec cp {} ${TMPDIR}/kconfig \;
|
||||||
|
|
||||||
cd ${TMPDIR}/specs
|
cd ${TMPDIR}/specs
|
||||||
|
|
||||||
# Fix up specs with datestamp
|
# Fix up specs with datestamp
|
||||||
|
@ -122,6 +122,13 @@ for i in $(find -name '*.spec'); do
|
||||||
if [ "${old_version_stamp}" = "${old_source_subpath}" ]; then
|
if [ "${old_version_stamp}" = "${old_source_subpath}" ]; then
|
||||||
sed -i 's|^source_subpath: \(.\+-\).\+$|source_subpath: \1'${DATESTAMP}'|' ${i}
|
sed -i 's|^source_subpath: \(.\+-\).\+$|source_subpath: \1'${DATESTAMP}'|' ${i}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
kconfig_line=$(grep '^boot/kernel/[^/]\+/config:' ${i})
|
||||||
|
if [ -n "${kconfig_line}" ]; then
|
||||||
|
key=$(echo "${kconfig_line}" | cut -d: -f1)
|
||||||
|
filename=$(basename $(echo "${kconfig_line}" | cut -d: -f2))
|
||||||
|
sed -i "s|^${key}:.*\$|${key}: ${TMPDIR}/kconfig/${filename}|" ${i}
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# Create snapshot
|
# Create snapshot
|
||||||
|
|
|
@ -7,6 +7,8 @@ SPECS="stage1.spec stage2.spec stage3.spec"
|
||||||
#SPECS="${SPECS} stage2-desktop.spec stage3-desktop.spec"
|
#SPECS="${SPECS} stage2-desktop.spec stage3-desktop.spec"
|
||||||
#SPECS="${SPECS} livecd-stage1.spec livecd-stage2.spec"
|
#SPECS="${SPECS} livecd-stage1.spec livecd-stage2.spec"
|
||||||
|
|
||||||
|
KCONFIG_DIR=/release/svn-releng/trunk/releases/2008.0/kconfig/amd64
|
||||||
|
|
||||||
#EMAIL_TO=releng@gentoo.org
|
#EMAIL_TO=releng@gentoo.org
|
||||||
EMAIL_TO=agaffney@gentoo.org
|
EMAIL_TO=agaffney@gentoo.org
|
||||||
EMAIL_FROM=catalyst@poseidon.amd64.dev.gentoo.org
|
EMAIL_FROM=catalyst@poseidon.amd64.dev.gentoo.org
|
||||||
|
|
Loading…
Add table
Reference in a new issue