Update of /cvsroot/devil-linux/build/scripts
In directory sc8-pr-cvs12.sourceforge.net:/tmp/cvs-serv5919/scripts
Modified Files:
Tag: rel-1-2-patches
razor-agents
Log Message:
make sure tmpdir exists
Index: razor-agents
===================================================================
RCS file: /cvsroot/devil-linux/build/scripts/razor-agents,v
retrieving revision 1.2.2.2
retrieving revision 1.2.2.3
diff -u -d -r1.2.2.2 -r1.2.2.3
--- razor-agents 21 Feb 2008 20:34:37 -0000 1.2.2.2
+++ razor-agents 28 Feb 2008 16:38:12 -0000 1.2.2.3
@@ -25,7 +25,7 @@
case $1 in
build )
if [ "$CONFIG_RAZOR_AGENTS" = "y" ]; then
- perl Makefile.PL PREFIX=/usr DESTDIR=$TMPDIR < /dev/null || exit 1
+ perl Makefile.PL PREFIX=/usr < /dev/null || exit 1
# now override the PREFIX setting to not use $TMPDIR%. MakeMaker
# does not have a better way to do this, it seems...
@@ -33,15 +33,16 @@
strip_debug
# we need to install it, otherwise it will fail later
- make install DESTDIR= || exit 1
+ make install || exit 1
fi
;;
install )
if [ "$CONFIG_RAZOR_AGENTS" = "y" ]; then
rm -rf $TMPDIR || exit 1
+ mkdir -p $TMPDIR
- make install || exit 1
+ make DESTDIR=$TMPDIR install || exit 1
copy_docs $TMPDIR
copy_files $TMPDIR/usr $CDDIR/ || exit 1
|