Browse Source

first draft

Bachir Soussi Chiadmi 7 years ago
commit
2ad8fea86c
6 changed files with 75 additions and 0 deletions
  1. 4 0
      .gitignore
  2. 10 0
      LICENSE
  3. 3 0
      README.md
  4. 0 0
      book-src/.keepme
  5. 24 0
      install.sh
  6. 34 0
      sync.sh

+ 4 - 0
.gitignore

@@ -0,0 +1,4 @@
+ospkit.src
+OSPKit
+node_modules
+book-src/*.git

File diff suppressed because it is too large
+ 10 - 0
LICENSE


+ 3 - 0
README.md

@@ -0,0 +1,3 @@
+# HTML2PRINT : tous des sangs mélé
+
+

+ 0 - 0
book-src/.keepme


+ 24 - 0
install.sh

@@ -0,0 +1,24 @@
+#!/bin/bash
+
+# install deps
+sudo pacman -S --needed --noconfirm base-devel ninja qt5
+
+
+mkdir ospkit.src
+
+# installing qtwebkit ospkit branch
+cd ospkit/
+git clone -o github -b ospkit --single-branch github:aleray/webkit.git
+cd webkit/
+WEBKIT_OUTPUTDIR=`pwd`/build/qt Tools/Scripts/build-webkit --qt --release
+cd build/qt/Release/
+sudo ninja install
+cd ../../../../
+
+# installing ospkit
+git clone -o constant-gitlab http://gitlab.constantvzw.org/osp/tools.ospkit.git
+cd tools.ospkit/src/
+qmake
+make
+cd ../../
+ln -s /tools.ospkit/src/OSPKit OSPKit

+ 34 - 0
sync.sh

@@ -0,0 +1,34 @@
+#!/bin/bash
+
+echo "Sync books"
+
+# activate credential cache
+git config --global credential.helper cache
+git config --global credential.helper 'cache --timeout=7200'
+
+folder='book-src'
+host='https://figureslibres.io/gogs/bachir'
+
+# echo "$host"
+
+repos[0]='TDSM-oeuvres'
+repos[1]='TDSM-notices'
+repos[2]='TDSM-commissaires'
+repos[3]='TDSM-english'
+
+# echo $repos
+
+for repo in "${repos[@]}"
+do
+  echo ${repo}
+  if [ -d $folder/$repo ];
+  then
+    # if repos exists, pull
+    echo 'Pull $repo'
+    git -C $folder/$repo.git pull origin master
+  else
+    # if repos does not exists, clone
+    echo 'clone $repo'
+    git clone $host/$repo.git $folder/$repo.git
+  fi
+done

Some files were not shown because too many files changed in this diff