Skip to content

Commit

Permalink
bin/gp.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Larpoux committed Mar 6, 2022
1 parent d2b85a0 commit a7ca647
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
Binary file added bin/.DS_Store
Binary file not shown.
2 changes: 2 additions & 0 deletions bin/doc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash

19 changes: 19 additions & 0 deletions bin/gp.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

git add .
TXT=$1

if [ -z "$TXT" ]; then
echo "Correct syntax is $0 <TEXT>"
exit -1
fi




git add .
git commit -m "$TXT"
git config pull.rebase false
git pull
git push

14 changes: 14 additions & 0 deletions bin/pdf-mydoc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Note that .sh scripts work only on Mac. If you're on Windows, install Git Bash and use that as your client.

echo 'Kill all Jekyll instances'
kill -9 $(ps aux | grep '[j]ekyll' | awk '{print $2}')
clear

echo "Building PDF-friendly HTML site for Mydoc ...";
bundle exec jekyll serve --detach --config _config.yml,pdfconfigs/config_mydoc_pdf.yml;
echo "done";

echo "Building the PDF ...";
prince --javascript --input-list=_site/pdfconfigs/prince-list.txt -o pdf/mydoc.pdf;

echo "Done. Look in the pdf directory to see if it printed successfully."

0 comments on commit a7ca647

Please sign in to comment.