Skip to content

Commit

Permalink
Merge pull request #18 from jsseidel/master
Browse files Browse the repository at this point in the history
Update deb install with groovy support and added dependency versions
  • Loading branch information
Spencer Seidel authored Feb 14, 2019
2 parents db76f5e + 551c75c commit 2b8ea05
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ usage_guide_pages/
build
*GroovyPandoc*jar
.DS_Store
debian/.debhelper/
debian/mktechdocs/
install_files/
2 changes: 1 addition & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Homepage: https://att.github.io/MkTechDocs/

Package: mktechdocs
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, python3-pip, graphviz, plantuml, texlive-xetex, ghostscript, pandoc, gradle, groovy
Depends: ${shlibs:Depends}, ${misc:Depends}, python3-pip, graphviz, plantuml, texlive-xetex, ghostscript, pandoc (>=1.19), gradle (>=3.0), groovy (>=2.4)
Description: MkTechDocs is an open framework for collating and transforming markdown.
MkTechDocs is an open framework for collating and transforming markdown. You
can use it to manage complex technical documentation projects with
Expand Down
25 changes: 22 additions & 3 deletions debian/postinst
Original file line number Diff line number Diff line change
@@ -1,6 +1,25 @@
#!/bin/sh

pip3 install pandocfilters
pip3 install jinja2

#pip3 install pandocfilters
#pip3 install jinja2

echo
echo "###########################################################"
echo "# Installation is NOT complete! #"
echo "# #"
echo "# In order to use mktechdocs, you'll need to complete the #"
echo "# following steps: #"
echo "# #"
echo "# sudo pip3 install pandocfilters #"
echo "# sudo pip3 install jinja2 #"
echo "# source /opt/mktechdocs/bin/mktechdocs.env #"
echo "# #"
echo "# Note 1: Omit 'sudo' to install python modules locally. #"
echo "# Note 2: You'll need to add the source line to your #"
echo "# .bashrc or .bash_profile or put the equivalent #"
echo "# variables in your environment if you use #"
echo "# a shell other than Bash. #"
echo "# #"
echo "# Happy Documenting! #"
echo "###########################################################"
echo
21 changes: 19 additions & 2 deletions debian/postrm
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
#!/bin/sh

pip3 uninstall pandocfilters
pip3 uninstall jinja2
echo
echo "###########################################################"
echo "# Package removal may NOT be complete! #"
echo "# #"
echo "# You likely installed the following 2 python modules #"
echo "# during MkTechDocs installation: #"
echo "# #"
echo "# pandocfilters #"
echo "# jinja2 #"
echo "# #"
echo "# If you wish to remove them along with mktechdocs: #"
echo "# #"
echo "# sudo pip3 uninstall pandocfilters #"
echo "# sudo pip3 uninstall jinja2 #"
echo "# #"
echo "# Note 1: Omit the 'sudo' if you chose to install the #"
echo "# modules locally. #"
echo "###########################################################"
echo

14 changes: 14 additions & 0 deletions make-deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,19 @@
mkdir -p ./install_files/opt/mktechdocs
cp -r ./bin ./test ./lib ./docs ./install_files/opt/mktechdocs/.

git clone https://github.com/jsseidel/groovy-pandoc.git /tmp/groovy-pandoc
(
cd /tmp/groovy-pandoc
gradle build
)

cp /tmp/groovy-pandoc/build/libs/GroovyPandoc-0.*.jar ./install_files/opt/mktechdocs/lib/.
if [[ "$?" != "0" ]] ; then
echo "Something went wrong. Giving up."
exit 1
fi

rm -rf /tmp/groovy-pandoc

dpkg-buildpackage

0 comments on commit 2b8ea05

Please sign in to comment.