svn commit: r244310 - projects/portbuild/scripts
Mark Linimon
linimon at FreeBSD.org
Sun Dec 16 21:02:30 UTC 2012
Author: linimon (doc,ports committer)
Date: Sun Dec 16 21:02:29 2012
New Revision: 244310
URL: http://svnweb.freebsd.org/changeset/base/244310
Log:
Remove group-friendly umask. Remove hardcoding of gcc. Make the .updated
file only after update success.
Modified:
projects/portbuild/scripts/dopackages
Modified: projects/portbuild/scripts/dopackages
==============================================================================
--- projects/portbuild/scripts/dopackages Sun Dec 16 20:58:39 2012 (r244309)
+++ projects/portbuild/scripts/dopackages Sun Dec 16 21:02:29 2012 (r244310)
@@ -9,9 +9,6 @@ pbd=${PORTBUILD_DATA:-/var/portbuild}
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:${pbc}/scripts
-# make writable by group
-umask 002
-
journalname="journal"
usage () {
@@ -480,11 +477,11 @@ if [ "$skipstart" = 0 ]; then
echo "updating ${PORTSDIR} from ${VCS}"
echo "================================================"
cd ${PORTSDIR}
- updated=$(date '+%Y/%m/%d %H:%M')
- echo ${updated} > ${builddir}/ports/.updated
# XXX MCL 20121120 not yet tested.
${VCS_UPDATE_COMMAND} ${builddir}/ports || mailexit 1
# XXX Check for conflicts
+ updated=$(date '+%Y/%m/%d %H:%M')
+ echo ${updated} > ${builddir}/ports/.updated
else
# echo "XXX at build portsupdate portsupdate ${arch} ${branch} ${buildid} $@ "
build portsupdate ${arch} ${branch} ${buildid} $@
@@ -700,7 +697,7 @@ if [ "$nobuild" = 0 ]; then
fi
# Compile ptimeout.
- /usr/bin/gcc -o ${builddir}/ptimeout -Wall ${pbc}/sources/ptimeout.c
+ /usr/bin/cc -o ${builddir}/ptimeout -Wall ${pbc}/sources/ptimeout.c
dobuild ${pbc} ${arch} ${branch} ${builddir}
More information about the svn-src-projects
mailing list