mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-17 10:29:26 +02:00
removed hardcoded username
git-svn-id: trunk@9088 -
This commit is contained in:
parent
cbf8e47ffc
commit
b062947c8e
@ -46,12 +46,12 @@ FPCARCH=`$COMPILER -iSP`
|
||||
|
||||
# clean installdir: since I am not root and the install dir can contain files owned by root
|
||||
# created by a previous freeze, I just move it out of the way
|
||||
if [ ! -d /tmp/vsnijders/trash ] ; then
|
||||
mkdir -p /tmp/vsnijders/trash
|
||||
if [ ! -d /tmp/`whoami`/trash ] ; then
|
||||
mkdir -p /tmp/`whoami`/trash
|
||||
fi
|
||||
rm -rf $INSTALLDIR
|
||||
if [ -d $INSTALLDIR ]; then
|
||||
mv $INSTALLDIR /tmp/vsnijders/trash/
|
||||
mv $INSTALLDIR /tmp/`whoami`/trash/
|
||||
fi
|
||||
mkdir -p $INSTALLDIR
|
||||
make install PP=$COMPILER INSTALL_PREFIX=$INSTALLDIR
|
||||
|
@ -18,13 +18,15 @@ INSTALLDIR=~/tmp/fpcsrc
|
||||
DATESTAMP=`date +%Y%m%d`
|
||||
PACKPROJ=fpcsrc.packproj
|
||||
|
||||
|
||||
# clean installdir: since I am not root and the install dir can contain files owned by root
|
||||
# created by a previous freeze, I just move it out of the way
|
||||
if [ ! -d /tmp/fpcfan/trash ] ; then
|
||||
mkdir -p /tmp/fpcfan/trash
|
||||
TRASHDIR=/tmp/`whoami`/trash
|
||||
if [ ! -d $TRASHDIR ] ; then
|
||||
mkdir -p $TRASHDIR
|
||||
fi
|
||||
if [ -d $INSTALLDIR ] ; then
|
||||
mv $INSTALLDIR /tmp/fpcfan/trash/fpcsrc-`date +%Y%m%d%H%M%S`
|
||||
mv $INSTALLDIR $TRASHDIR/fpcsrc-`date +%Y%m%d%H%M%S`
|
||||
fi
|
||||
|
||||
# copy sources
|
||||
|
Loading…
Reference in New Issue
Block a user