[Debian-live-changes] r1134 -
configs/daniel/config/chroot_localincludes/usr/local/bin
Daniel Baumann
daniel at alioth.debian.org
Mon Apr 23 06:42:05 UTC 2007
Author: daniel
Date: 2007-04-23 06:42:05 +0000 (Mon, 23 Apr 2007)
New Revision: 1134
Modified:
configs/daniel/config/chroot_localincludes/usr/local/bin/dputs
Log:
Modified: configs/daniel/config/chroot_localincludes/usr/local/bin/dputs
===================================================================
--- configs/daniel/config/chroot_localincludes/usr/local/bin/dputs 2007-04-23 05:08:49 UTC (rev 1133)
+++ configs/daniel/config/chroot_localincludes/usr/local/bin/dputs 2007-04-23 06:42:05 UTC (rev 1134)
@@ -82,17 +82,17 @@
if [ "${SPONSOR}" = "sponsor" ]
then
CHROOT="${DIRECTORY_CHROOT}/${DISTRIBUTION}/home/${USER}/NEW"
+ NAME="`grep -e 'Changed-By:' ${CHROOT}/*.changes | sed -e 's/Changed-By: //' -e 's/ <.*//' -e 's/ /-/g' | tr A-Z a-z`"
else
CHROOT="${DIRECTORY_CHROOT}/${DISTRIBUTION}/home/${USER}"
fi
-NAME="`grep -e 'Changed-By:' ${CHROOT}/*.changes | sed -e 's/Changed-By: //' -e 's/ <.*//' -e 's/ /-/g' | tr A-Z a-z`"
PACKAGE="`basename ${CHROOT}/*.dsc | awk -F_ '{ print $1 }'`"
VERSION="`basename ${CHROOT}/*.dsc | awk -F_ '{ print $2 }' | sed -e 's/.dsc//'`"
CURDIR="`pwd`"
-if [ "`basename ${CURDIR}`" = "${NAME}" ]
+if [ -z "${NAME}" ] || [ "`basename ${CURDIR}`" = "${NAME}" ]
then
mkdir -p "${PACKAGE}"/"${VERSION}"
cd "${PACKAGE}"/"${VERSION}"
More information about the Debian-live-changes
mailing list