let's not remove those for the moment

gh-pages
somas95 2018-05-09 20:45:22 +02:00
parent f1cf53868a
commit ec68ce7c42
3 changed files with 89 additions and 0 deletions

View File

@ -0,0 +1,30 @@
#!/bin/sh
for i in "$@"
do
case $i in
--module=*)
MODULENAME="${i#*=}"
shift
;;
*)
ARGS="$ARGS $i"
shift
;;
esac
done
cat <<EOF > Makefile
all:
echo "Nothing"
install:
mkdir /tmp/fonts
cd /tmp/fonts
curl -L https://fonts.google.com/download?family=Fira%20Mono > Fira_Mono.zip
unzip Fira_Mono.zip
rm Fira_Mono.zip
mkdir -p /app/share/fonts
cp ./* /app/share/fonts
EOF

View File

@ -0,0 +1,35 @@
#!/bin/sh
for i in "$@"
do
case $i in
--module=*)
MODULENAME="${i#*=}"
shift
;;
*)
ARGS="$ARGS $i"
shift
;;
esac
done
cat <<EOF > Makefile
all:
echo "Nothing"
install:
CXX=/usr/bin/g++ CC=/usr/bin/gcc PYTHONUSERBASE=/app/ pip3 install --user $MODULENAME;
cd /tmp/
mkdir pandoc_dl && cd pandoc_dl
curl -L https://github.com/jgm/pandoc/releases/download/2.1.3/pandoc-2.1.3-1-amd64.deb > pandoc.deb
ar x pandoc.deb
tar xf data.tar.*
cp ./usr/bin/pandoc /app/bin/pandoc
cp ./usr/bin/pandoc-citeproc /app/bin/pandoc-citeproc
mkdir -p /app/share/
cp ./usr/share/doc/pandoc/copyright /app/share/pandoc.copyright
cd ..
rm -rf /tmp/pandoc_dl
EOF

View File

@ -0,0 +1,24 @@
#!/bin/sh
for i in "$@"
do
case $i in
--module=*)
MODULENAME="${i#*=}"
shift
;;
*)
ARGS="$ARGS $i"
shift
;;
esac
done
cat <<EOF > Makefile
all:
echo "Nothing"
install:
CXX=/usr/bin/g++ CC=/usr/bin/gcc PYTHONUSERBASE=/app/ pip3 install --user $MODULENAME
EOF