Browse Source

Clifford Wolf:


			
			
				rocklinux
			
			
		
Clifford Wolf 20 years ago
parent
commit
8b541379ae
2 changed files with 9 additions and 63 deletions
  1. +9
    -3
      scripts/Build-Pkg
  2. +0
    -60
      scripts/create-cache.sh

+ 9
- 3
scripts/Build-Pkg

@ -395,7 +395,7 @@ if [ $this_is_the_2nd_run = 0 ] ; then
if [ "$ROCKCFG_CREATE_CACHE" = 1 -a $stagelevel -gt 1 ] ; then
mkdir -p $root/var/adm/cache
rm -f $root/var/adm/cache/$xpkg
touch $root/var/adm/cache/$xpkg
rm -f $root/var/adm/cache/$xpkg.tm
/usr/bin/time -o "$root/var/adm/cache/$xpkg.tm" \
@ -413,7 +413,11 @@ if [ $this_is_the_2nd_run = 0 ] ; then
sed "s,/$pkg.desc\$,/$pkg.cache,"
fi
date '+%n[TIMESTAMP] %s %c'
echo
grep '^\[TIMESTAMP\]' $root/var/adm/cache/$xpkg
date "+[TIMESTAMP] %s %c ($stagelevel)"
echo
echo "[CONFIG-ID] ${ROCKCFG_ID#*-}"
echo -e "[ROCKVER] $rockver\n"
@ -421,6 +425,7 @@ if [ $this_is_the_2nd_run = 0 ] ; then
ls ?-$xpkg.* 2> /dev/null )
echo
grep '^\[BUILDTIME\]' $root/var/adm/cache/$xpkg
echo "[BUILDTIME] $buildtime ($stagelevel)"
x="$root/var/adm/packages/$xpkg"
@ -450,7 +455,8 @@ if [ $this_is_the_2nd_run = 0 ] ; then
echo
fi
done
} > $root/var/adm/cache/$xpkg
} > $root/var/adm/cache/$xpkg.new
mv $root/var/adm/cache/$xpkg.new $root/var/adm/cache/$xpkg
exit $returncode
else

+ 0
- 60
scripts/create-cache.sh

@ -1,60 +0,0 @@
#!/bin/bash
#
# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
#
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# Please add additional copyright information _after_ the line containing
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
#
# ROCK Linux: rock-src/scripts/create-cache.sh
# ROCK Linux is Copyright (C) 1998 - 2005 Clifford Wolf
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version. A copy of the GNU General Public
# License can be found at Documentation/COPYING.
#
# Many people helped and are helping developing ROCK Linux. Please
# have a look at http://www.rocklinux.org/ and the Documentation/TEAM
# file for details.
#
# --- ROCK-COPYRIGHT-NOTE-END ---
if [ "$#" != 5 ] ; then
echo "Usage: $0 <rockver> <buildtime> <stage> <pkg> <var-adm-dir>" >&2
exit 1
fi
rockver=$1
buildtime=$2
stagelevel=$3
pkg=$4
varadm=$5
LC_ALL=C date '+%n[TIMESTAMP] %s %c'
echo -e "[ROCKVER] $rockver\n"
echo "[LOGS]" $( cd ${varadm}/logs ; ls ?-$pkg.* )
echo
if [ -f "${varadm}/logs/$stagelevel-$pkg.log" ]
then
echo "[BUILDTIME] $buildtime ($stagelevel)"
echo "[SIZE] `grep "^Package Size: " \
${varadm}/packages/$pkg | cut -f3- -d' '`"
echo
cut -f2- -d' ' "${varadm}/dependencies/$pkg" |
fmt -70 | sed 's,^,[DEP] ,'
echo
fi
for stagelevel in 0 1 2 3 4 5 6 7 8 9 ; do
if [ -f "${varadm}/logs/$stagelevel-$pkg.err" ] ; then
tail -n 50 "${varadm}/logs/$stagelevel-$pkg.err" | \
sed "s,^,[$stagelevel-ERROR] ,"
echo
fi
done

Loading…
Cancel
Save