Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update.sh: support relative paths on the config file location

  • Loading branch information...
commit ffe50c35922345d67511726b4daf24d05309ad4c 1 parent b323575
Carlos Garnacho authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 update.sh
View
4 update.sh
@@ -5,6 +5,7 @@
DXRCONFIG=$1
TREE="$2"
REMOTE="$3"
+CURRENTDIR=`pwd`
if [ ! -f $DXRCONFIG ]; then
if [ -f /etc/dxr/dxr.config ]; then
@@ -44,6 +45,7 @@ test "`command -v clang`" == "" && echo Failed: clang not found && exit 1
python -c 'import xdg.Mime, sqlite3, subprocess' || (echo Failed: Missing Python modules && exit 1)
# Source
+cd $CURRENTDIR
. $DXRROOT/setup-env.sh $DXRCONFIG $TREE || exit 1
echo ' '
@@ -70,7 +72,7 @@ NCSV=`find $BUILD -name "*.csv" | wc -l` && test "$NCSV" == "0" && echo Failed:
echo ' '
# Index
-cd $WWWROOT
+cd $CURRENTDIR
$DXRROOT/dxr-index.py -f $DXRCONFIG -t $TREE
NTBL=`echo '.tables' | sqlite3 -init /dev/stdin /$WWWROOT/$TREE/.dxr_xref/$TREE.sqlite | wc -w` && test "$NTBL" != "20" && echo Failed: Missing tables && exit 1
Please sign in to comment.
Something went wrong with that request. Please try again.