| version 1.31, 2010/02/10 20:57:07 |
version 1.32, 2010/02/24 21:58:18 |
|
|
| #!/bin/sh |
#!/bin/sh |
| # $AFresh1: release.sh,v 1.30 2009/12/03 17:28:37 andrew Exp $ |
# $AFresh1: release.sh,v 1.31 2010/02/10 20:57:07 andrew Exp $ |
| # |
# |
| # Copyright (c) 2002, 2008 Steven Roberts <sroberts@fenderq.com> |
# Copyright (c) 2002, 2008 Steven Roberts <sroberts@fenderq.com> |
| # |
# |
|
|
| fi |
fi |
| if [ $_status != 0 ]; then |
if [ $_status != 0 ]; then |
| echo Kernel Build Failed |
echo Kernel Build Failed |
| |
exit $_status |
| fi |
fi |
| exit $_status |
|
| } |
} |
| |
|
| build_system() { |
build_system() { |
|
|
| fi |
fi |
| if [ $_status != 0 ]; then |
if [ $_status != 0 ]; then |
| echo System Build Failed |
echo System Build Failed |
| |
exit $_status |
| |
else |
| |
echo Update /etc, /var, and /dev/MAKEDEV, either by hand or using sysmerge\(8\). |
| fi |
fi |
| echo Update /etc, /var, and /dev/MAKEDEV, either by hand or using sysmerge\(8\). |
|
| exit $_status |
|
| } |
} |
| |
|
| make_system_release() { |
make_system_release() { |
|
|
| unset DESTDIR RELEASEDIR |
unset DESTDIR RELEASEDIR |
| if [ $_status != 0 ]; then |
if [ $_status != 0 ]; then |
| echo System Release Failed |
echo System Release Failed |
| |
exit $_status |
| fi |
fi |
| exit $_status |
|
| } |
} |
| |
|
| build_xenocara() { |
build_xenocara() { |
|
|
| unset DESTDIR RELEASEDIR |
unset DESTDIR RELEASEDIR |
| empty_dir /usr/xobj & |
empty_dir /usr/xobj & |
| cd $XSRCDIR |
cd $XSRCDIR |
| make bootstrap |
|
| _status=$? |
_status=$? |
| if [ $_status == 0 ]; then |
if [ $_status == 0 ]; then |
| |
make bootstrap |
| |
_status=$? |
| |
fi |
| |
if [ $_status == 0 ]; then |
| make obj |
make obj |
| _status=$? |
_status=$? |
| fi |
fi |
|
|
| fi |
fi |
| if [ $_status != 0 ]; then |
if [ $_status != 0 ]; then |
| echo Xenocara Build Failed |
echo Xenocara Build Failed |
| |
exit $_status |
| fi |
fi |
| exit $_status |
|
| } |
} |
| |
|
| make_xenocara_release() { |
make_xenocara_release() { |
|
|
| mkdir -p $DESTDIR $RELEASEDIR |
mkdir -p $DESTDIR $RELEASEDIR |
| empty_dir $DESTDIR & |
empty_dir $DESTDIR & |
| cd $XSRCDIR |
cd $XSRCDIR |
| nice make release |
|
| _status=$? |
_status=$? |
| |
if [ $_status == 0 ]; then |
| |
nice make release |
| |
_status=$? |
| |
fi |
| unset DESTDIR RELEASEDIR |
unset DESTDIR RELEASEDIR |
| if [ $_status != 0 ]; then |
if [ $_status != 0 ]; then |
| echo Xenocara Release Failed |
echo Xenocara Release Failed |
| |
exit $_status |
| fi |
fi |
| exit $_status |
|
| } |
} |
| |
|
| usage() { |
usage() { |
|
|
| do |
do |
| case $i in |
case $i in |
| update) |
update) |
| update_sources || exit 10 |
update_sources |
| ;; |
;; |
| kernel) |
kernel) |
| build_kernel || exit 20 |
build_kernel |
| ;; |
;; |
| system) |
system) |
| build_system || exit 30 |
build_system |
| ;; |
;; |
| system-release) |
system-release) |
| make_system_release || exit 35 |
make_system_release |
| ;; |
;; |
| xenocara) |
xenocara) |
| build_xenocara || exit 40 |
build_xenocara |
| ;; |
;; |
| xenocara-release) |
xenocara-release) |
| make_xenocara_release || exit 45 |
make_xenocara_release |
| ;; |
;; |
| full-release) |
full-release) |
| build_xenocara || exit 51 |
build_xenocara |
| make_xenocara_release || exit 52 |
make_xenocara_release |
| build_system || exit 53 |
build_system |
| make_system_release || exit 54 |
make_system_release |
| ;; |
;; |
| *) |
*) |
| echo "---------- Abort! Abort! ----------" |
echo "---------- Abort! Abort! ----------" |