[Piuparts-commits] rev 404 - in piatti/home: piupartsm/bin piupartss/bin
Holger Levsen
holger at alioth.debian.org
Mon May 11 14:19:19 UTC 2009
Author: holger
Date: 2009-05-11 14:19:19 +0000 (Mon, 11 May 2009)
New Revision: 404
Modified:
piatti/home/piupartsm/bin/detect_archive_issues
piatti/home/piupartsm/bin/detect_network_issues
piatti/home/piupartsm/bin/detect_slave_problems
piatti/home/piupartsm/bin/detect_well_known_errors
piatti/home/piupartsm/bin/prepare_backup
piatti/home/piupartsm/bin/report_untestable_packages
piatti/home/piupartss/bin/detect_leftover_processes
Log:
parsing perl configuration files in shell is painful
Modified: piatti/home/piupartsm/bin/detect_archive_issues
===================================================================
--- piatti/home/piupartsm/bin/detect_archive_issues 2009-05-11 14:03:46 UTC (rev 403)
+++ piatti/home/piupartsm/bin/detect_archive_issues 2009-05-11 14:19:19 UTC (rev 404)
@@ -21,7 +21,7 @@
#
TEMPFILE=`mktemp`
-egrep "(^sections|^master-directory)" /etc/piuparts/piuparts.conf| sed -e "s# ##g" -e "s#sections#SECTIONS#" -e "s#master-directory#MASTER#" > $TEMPFILE
+egrep "(^sections|^master-directory)" /etc/piuparts/piuparts.conf| sed -e "s# =#=#g" -e "s#= #=#g" -e 's#=#="#' -e 's#$#"#' -e "s#sections#SECTIONS#" -e "s#master-directory#MASTER#" > $TEMPFILE
source $TEMPFILE
rm $TEMPFILE
if [ -z $MASTER ] || [ -z $SECTIONS ] ; then
Modified: piatti/home/piupartsm/bin/detect_network_issues
===================================================================
--- piatti/home/piupartsm/bin/detect_network_issues 2009-05-11 14:03:46 UTC (rev 403)
+++ piatti/home/piupartsm/bin/detect_network_issues 2009-05-11 14:19:19 UTC (rev 404)
@@ -21,7 +21,7 @@
#
TEMPFILE=`mktemp`
-egrep "(^sections|^master-directory)" /etc/piuparts/piuparts.conf| sed -e "s# ##g" -e "s#sections#SECTIONS#" -e "s#master-directory#MASTER#" > $TEMPFILE
+egrep "(^sections|^master-directory)" /etc/piuparts/piuparts.conf| sed -e "s# =#=#g" -e "s#= #=#g" -e 's#=#="#' -e 's#$#"#' -e "s#sections#SECTIONS#" -e "s#master-directory#MASTER#" > $TEMPFILE
source $TEMPFILE
rm $TEMPFILE
if [ -z $MASTER ] || [ -z $SECTIONS ] ; then
Modified: piatti/home/piupartsm/bin/detect_slave_problems
===================================================================
--- piatti/home/piupartsm/bin/detect_slave_problems 2009-05-11 14:03:46 UTC (rev 403)
+++ piatti/home/piupartsm/bin/detect_slave_problems 2009-05-11 14:19:19 UTC (rev 404)
@@ -21,7 +21,7 @@
#
TEMPFILE=`mktemp`
-egrep "(^sections|^master-directory)" /etc/piuparts/piuparts.conf| sed -e "s# ##g" -e "s#sections#SECTIONS#" -e "s#master-directory#MASTER#" > $TEMPFILE
+egrep "(^sections|^master-directory)" /etc/piuparts/piuparts.conf| sed -e "s# =#=#g" -e "s#= #=#g" -e 's#=#="#' -e 's#$#"#' -e "s#sections#SECTIONS#" -e "s#master-directory#MASTER#" > $TEMPFILE
source $TEMPFILE
rm $TEMPFILE
if [ -z $MASTER ] || [ -z $SECTIONS ] ; then
Modified: piatti/home/piupartsm/bin/detect_well_known_errors
===================================================================
--- piatti/home/piupartsm/bin/detect_well_known_errors 2009-05-11 14:03:46 UTC (rev 403)
+++ piatti/home/piupartsm/bin/detect_well_known_errors 2009-05-11 14:19:19 UTC (rev 404)
@@ -21,7 +21,7 @@
#
TEMPFILE=`mktemp`
-egrep "(^sections|^master-directory)" /etc/piuparts/piuparts.conf| sed -e "s# ##g" -e "s#sections#SECTIONS#" -e "s#master-directory#MASTER#" > $TEMPFILE
+egrep "(^sections|^master-directory)" /etc/piuparts/piuparts.conf| sed -e "s# =#=#g" -e "s#= #=#g" -e 's#=#="#' -e 's#$#"#' -e "s#sections#SECTIONS#" -e "s#master-directory#MASTER#" > $TEMPFILE
source $TEMPFILE
rm $TEMPFILE
if [ -z $MASTER ] || [ -z $SECTIONS ] ; then
Modified: piatti/home/piupartsm/bin/prepare_backup
===================================================================
--- piatti/home/piupartsm/bin/prepare_backup 2009-05-11 14:03:46 UTC (rev 403)
+++ piatti/home/piupartsm/bin/prepare_backup 2009-05-11 14:19:19 UTC (rev 404)
@@ -20,7 +20,7 @@
# parse config file
#
TEMPFILE=`mktemp`
-egrep "(^sections|^master-directory)" /etc/piuparts/piuparts.conf| sed -e "s# ##g" -e "s#sections#SECTIONS#" -e "s#master-directory#MASTER#" > $TEMPFILE
+egrep "(^sections|^master-directory)" /etc/piuparts/piuparts.conf| sed -e "s# =#=#g" -e "s#= #=#g" -e 's#=#="#' -e 's#$#"#' -e "s#sections#SECTIONS#" -e "s#master-directory#MASTER#" > $TEMPFILE
source $TEMPFILE
rm $TEMPFILE
if [ -z $MASTER ] || [ -z $SECTIONS ] ; then
Modified: piatti/home/piupartsm/bin/report_untestable_packages
===================================================================
--- piatti/home/piupartsm/bin/report_untestable_packages 2009-05-11 14:03:46 UTC (rev 403)
+++ piatti/home/piupartsm/bin/report_untestable_packages 2009-05-11 14:19:19 UTC (rev 404)
@@ -21,7 +21,7 @@
#
TEMPFILE=`mktemp`
-egrep "(^sections|^master-directory)" /etc/piuparts/piuparts.conf| sed -e "s# ##g" -e "s#sections#SECTIONS#" -e "s#master-directory#MASTER#" > $TEMPFILE
+egrep "(^sections|^master-directory)" /etc/piuparts/piuparts.conf| sed -e "s# =#=#g" -e "s#= #=#g" -e 's#=#="#' -e 's#$#"#' -e "s#sections#SECTIONS#" -e "s#master-directory#MASTER#" > $TEMPFILE
source $TEMPFILE
rm $TEMPFILE
if [ -z $MASTER ] || [ -z $SECTIONS ] ; then
Modified: piatti/home/piupartss/bin/detect_leftover_processes
===================================================================
--- piatti/home/piupartss/bin/detect_leftover_processes 2009-05-11 14:03:46 UTC (rev 403)
+++ piatti/home/piupartss/bin/detect_leftover_processes 2009-05-11 14:19:19 UTC (rev 404)
@@ -21,7 +21,7 @@
#
TEMPFILE=`mktemp`
-egrep "(^sections|^master-directory)" /etc/piuparts/piuparts.conf| sed -e "s# ##g" -e "s#sections#SECTIONS#" -e "s#master-directory#MASTER#" > $TEMPFILE
+egrep "(^sections|^master-directory)" /etc/piuparts/piuparts.conf| sed -e "s# =#=#g" -e "s#= #=#g" -e 's#=#="#' -e 's#$#"#' -e "s#sections#SECTIONS#" -e "s#master-directory#MASTER#" > $TEMPFILE
source $TEMPFILE
rm $TEMPFILE
if [ -z $MASTER ] || [ -z $SECTIONS ] ; then
More information about the Piuparts-commits
mailing list