aboutsummaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2008-06-26 06:27:17 +0800
committerkris <kris@FreeBSD.org>2008-06-26 06:27:17 +0800
commitce05f4fa575986b95bc2f1b429f10e43e81a7009 (patch)
treec91247a825fc538592a804f29ef9ea7e583c0355 /Tools
parent26dc3fcd20828a1caae0d20d33ef6929f51d2de0 (diff)
downloadfreebsd-ports-gnome-ce05f4fa575986b95bc2f1b429f10e43e81a7009.tar.gz
freebsd-ports-gnome-ce05f4fa575986b95bc2f1b429f10e43e81a7009.tar.zst
freebsd-ports-gnome-ce05f4fa575986b95bc2f1b429f10e43e81a7009.zip
This conversion script is no longer useful
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/updatefailure74
1 files changed, 0 insertions, 74 deletions
diff --git a/Tools/portbuild/scripts/updatefailure b/Tools/portbuild/scripts/updatefailure
deleted file mode 100755
index cd38e8e0512c..000000000000
--- a/Tools/portbuild/scripts/updatefailure
+++ /dev/null
@@ -1,74 +0,0 @@
-#!/bin/sh
-#
-# Update the format of the failure file from the old-style (alphanumeric
-# date, and only tracks latest failure date).
-#
-# This must be called via:
-#
-# lockf -k ${pb}/${arch}/${branch}/failure.lock ${pb}/scripts/updatefailure ${arch} ${branch}
-#
-# to avoid racing with any package builds in progress that might try to append to
-# these files.
-
-# configurable variables
-pb=/var/portbuild
-
-cleanup() {
- echo "Problem writing new failure file!"
- rm -f failure.new
- exit 1
-}
-
-if [ $# -ne 2 ]; then
- echo "updatefailure <arch> <branch>"
- exit 1
-fi
-
-arch=$1
-branch=$2
-shift 2
-
-. ${pb}/${arch}/portbuild.conf
-. ${pb}/scripts/buildenv
-
-buildenv ${pb} ${arch} ${branch}
-
-home=${pb}/${arch}/${branch}
-cd $home
-
-echo "===> Updating old failure file"
-
-rm -f failure.new
-tr -s ' ' '_' < failure > failure2
-mv failure2 failure
-
-IFS='|'
-while read dir name ver date count; do
-
- entry=$(grep "^$dir|" newfailure)
- if [ -z "$entry" ]; then
- echo $dir not in newfailures
- olddate=0
- else
- olddate=$(echo $entry | cut -f 4 -d \ )
- echo $dir has olddate $olddate
- fi
-
- if (echo $olddate | grep '_'); then
- date2=$(echo $olddate | tr -s '_' ' ')
- echo $date2
- olddate=$(date -j -f %+ "$date2" +%s)
- echo Updating to $olddate
- fi
-
- if (echo $date | grep '_'); then
- date2=$(echo $date | tr -s '_' ' ')
- echo $date2
- date=$(date -j -f %+ "$date2" +%s)
- echo Updating to $date
- fi
-
- (echo "$dir|$name|$ver|$olddate|$date|$count" >> $home/failure.new) || cleanup
-done < $home/failure
-
-mv failure.new failure