Skip to content
This repository has been archived by the owner on Feb 10, 2020. It is now read-only.

Commit

Permalink
Copy Pandoc binary into chroot
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Lanigan committed Apr 19, 2018
1 parent 3a213bf commit 37d553b
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions setup-chroot.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/bash

echo "Setting up chroot in "$(pwd)
# echo "Command line ARG1: '${1}'"


IS_SNAP=0
Expand Down Expand Up @@ -112,10 +111,14 @@ mkdir -p install-tl-unx
tar xvf install-tl-unx.tar.gz --strip-components 1 --directory install-tl-unx


# echo "Cleaning up"
#
# rm install-tl-unx.tar.gz
# rm -rf install-tl-20180303
if [ $IS_SNAP == 1 ]
then
echo "Copying Pandoc"
# TODO: Handle removing/updating this
cp -a ${SNAP}/bin/pandoc bin/
cp -a ${SNAP}/bin/pandoc-citeproc bin/
cp -a ${SNAP}/bin/pandoc-crossref bin/
fi


echo "Setting up a small amount of entropy into /dev/random"
Expand All @@ -124,6 +127,12 @@ echo "(this will be faster if you use the keyboard and mouse!)"
dd if=/dev/random of=dev/random bs=1 count=256


echo "Cleaning up"

rm install-tl-unx.tar.gz
# rm -rf install-tl-20180303


echo "DONE chroot setup"


Expand Down

0 comments on commit 37d553b

Please sign in to comment.