Skip to content

Commit

Permalink
Enable CourtListener
Browse files Browse the repository at this point in the history
  • Loading branch information
fbennett committed Jul 30, 2017
1 parent 73d8ecf commit 5bf2ebe
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion grab_xpis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,15 @@ CONTAINER_DIR=$(dirname "$CALLDIR")
if [ "${LOCAL_DIR}" == "jurism" ]; then
LATEST="${CONTAINER_DIR}/jurism/build"
echo "Building Jurism from ${LATEST}"
cp -r "${LATEST}" -d "$BUILD_DIR/jurism"
cp -r -L "${LATEST}" "$BUILD_DIR/jurism"
#ls -l "$BUILD_DIR/jurism/"
# Needed to avoid crash when runner assumes jurism code is packed.
cp "$BUILD_DIR/jurism/translators/deleted.txt" "$BUILD_DIR/jurism/deleted.txt"
# Needed to enable CourtListener translator
CL_KEY=$(cat "${CONTAINER_DIR}"/jurism/cl-key.txt)
echo $CL_KEY
echo "${BUILD_DIR}/jurism/resource/config.js"
sed -si "s/%%VALUE%%/${CL_KEY}/" "${BUILD_DIR}/jurism/resource/config.js"
else
LATEST=$(${GFIND} "$CONTAINER_DIR/${LOCAL_DIR}"/releases -type f -name '*.xpi' -printf '%AY%Am%Ad%AH%AI%AM%AS %h/%f\n' | sort -r | head -1 | cut -d\ -f 2);
unzip -q "${LATEST}" -d "$CALLDIR/modules/$LOCAL_DIR/"
Expand Down

0 comments on commit 5bf2ebe

Please sign in to comment.