[pitivi] bin: Fix the script to enter xdg-app env
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] bin: Fix the script to enter xdg-app env
- Date: Wed, 27 Apr 2016 16:56:31 +0000 (UTC)
commit dc007c745d0e7ffdeb73b6147fbec98e8e3ae891
Author: Thibault Saunier <tsaunier gnome org>
Date: Fri Apr 22 19:00:42 2016 -0300
bin: Fix the script to enter xdg-app env
We had some variable mixups
Differential Revision: https://phabricator.freedesktop.org/D950
build/xdg-app/enter_env | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/build/xdg-app/enter_env b/build/xdg-app/enter_env
index 9d36ca1..e256ec2 100755
--- a/build/xdg-app/enter_env
+++ b/build/xdg-app/enter_env
@@ -1,12 +1,14 @@
#!/bin/sh
+PITIVI_DIR=$(dirname $(realpath $0))/../../
+echo $PITIVI_DIR
function generate_path_and_completion_calls {
- echo "export PATH=$GITREPO/bin/:\$PATH"
+ echo "export PATH=$PITIVI_DIR/bin/:\$PATH"
echo "export CC='ccache gcc'"
echo "export CXX='ccache g++'"
}
-RCFILE=$GITREPO/.bashrc
+RCFILE=$PITIVI_DIR/.bashrc
cp ~/.bashrc $RCFILE
echo "export PS1=[ptv]\ \$PS1" >> $RCFILE
echo "export PITIVI_DEVELOPMENT=1" >> $RCFILE
@@ -19,8 +21,7 @@ then
echo "Entering own built environment"
echo "=============================="
- GITREPO="$(git rev-parse --show-toplevel)"
- cd $GITREPO
+ cd $PITIVI_DIR
bash --rcfile $RCFILE
else
$*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]