Revision: 5319
          http://ipcop.svn.sourceforge.net/ipcop/?rev=5319&view=rev
Author:   gespinasse
Date:     2011-01-10 21:00:55 +0000 (Mon, 10 Jan 2011)

Log Message:
-----------
Remove the PWD hack as with no purpose and dangerous to your mind

First saving `pwd` command value into PWD is a bad idea as show by
bash -c 'PWD=$(pwd);echo "saved:$PWD"; cd /tmp;echo "now:$PWD"'
The fact to change to /tmp rewrite PWD

Using cd $PWD at the end does nothing.
When script end, you retrieve the directory where you started the script
 

Modified Paths:
--------------
    ipcop/trunk/make.sh

Modified: ipcop/trunk/make.sh
===================================================================
--- ipcop/trunk/make.sh 2011-01-09 21:38:00 UTC (rev 5318)
+++ ipcop/trunk/make.sh 2011-01-10 21:00:55 UTC (rev 5319)
@@ -93,8 +93,6 @@
        fi
 fi
 
-PWD=`pwd`
-
 # This is just a temporary variable to help us decide what our current working 
directory is
 BASENAME=`basename ${0}`
 
@@ -1932,7 +1930,6 @@
        stdumount
        ${SUDO} ${RM} ${LFS}/tmp/*
 
-       cd ${PWD}
 } # End of packages_build()
 
 
@@ -2197,8 +2194,6 @@
        ${SUDO} ${MV} 
${BASEDIR}/build_${MACHINE}/${INSTALLER_DIR}/images/${SNAME}-${VERSION}-update* 
${BASEDIR}/
        [ "${VERSIONSTEP}" ] && ${SUDO} ${MV} 
${BASEDIR}/build_${MACHINE}/${INSTALLER_DIR}/images/${SNAME}-${VERSIONSTEP}-update*
 ${BASEDIR}/
 
-       cd ${PWD}
-
        [ "${RUNNING_TEST}" == 'yes' ] && parse_tests
 
        #temporary comment while alpha stage:


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
_______________________________________________
Ipcop-svn mailing list
Ipcop-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipcop-svn

Reply via email to