diff --git a/install/usr/share/swarmlab.io/sec/bin/debug.sh b/install/usr/share/swarmlab.io/sec/bin/debug.sh new file mode 100644 index 0000000..cbb7324 --- /dev/null +++ b/install/usr/share/swarmlab.io/sec/bin/debug.sh @@ -0,0 +1,35 @@ +#!/bin/bash + +SOURCE="${BASH_SOURCE[0]}" +while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink + TARGET="$(readlink "$SOURCE")" + if [[ $TARGET == /* ]]; then + #echo "SOURCE '$SOURCE' is an absolute symlink to '$TARGET'" + SOURCE="$TARGET" + else + DIR="$( dirname "$SOURCE" )" + #echo "SOURCE '$SOURCE' is a relative symlink to '$TARGET' (relative to '$DIR')" + SOURCE="$DIR/$TARGET" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located + fi +done + +SRPATH="$( dirname "$SOURCE" )" +SFPATH="$( cd -P "$( dirname "$SOURCE" )" && pwd )" +if [ "$SFPATH" != "$SRPATH" ]; then + RDIR=$SRPATH # relativ path directory +fi + +#echo "relativ" +#echo $SRPATH + +#echo "full path" +#echo $SFPATH + +#echo "relativ" +#echo $RDIR + +. $SFPATH/mainset.sh + + cp -f $rp/docs/metaptyxiako.bib $rp/docs/metaptyxiako_bib.backup1 + docker exec $dexec /bin/sh -c "latex-pdf -f main" + diff --git a/install/usr/share/swarmlab.io/sec/bin/latex-clean.sh b/install/usr/share/swarmlab.io/sec/bin/latex-clean.sh new file mode 100644 index 0000000..eaaf14b --- /dev/null +++ b/install/usr/share/swarmlab.io/sec/bin/latex-clean.sh @@ -0,0 +1,39 @@ +#!/bin/bash + + +SOURCE="${BASH_SOURCE[0]}" +while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink + TARGET="$(readlink "$SOURCE")" + if [[ $TARGET == /* ]]; then + #echo "SOURCE '$SOURCE' is an absolute symlink to '$TARGET'" + SOURCE="$TARGET" + else + DIR="$( dirname "$SOURCE" )" + #echo "SOURCE '$SOURCE' is a relative symlink to '$TARGET' (relative to '$DIR')" + SOURCE="$DIR/$TARGET" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located + fi +done + +SRPATH="$( dirname "$SOURCE" )" +SFPATH="$( cd -P "$( dirname "$SOURCE" )" && pwd )" +if [ "$SFPATH" != "$SRPATH" ]; then + RDIR=$SRPATH # relativ path directory +fi + +#echo "relativ" +#echo $SRPATH + +#echo "full path" +#echo $SFPATH + +#echo "relativ" +#echo $RDIR + +. $SFPATH/mainset.sh + +cp -f $rp/docs/metaptyxiako.bib $rp/docs/metaptyxiako_bib.backup1 +docker exec $dexec /bin/sh -c "/usr/local/bin/latex-clean -f main" +cp $rp/docs/metaptyxiako_bib.backup1 $rp/docs/metaptyxiako.bib +rm -f $rp/docs/main.lot +rm -f $rp/docs/main.toc + diff --git a/install/usr/share/swarmlab.io/sec/bin/make-all.sh b/install/usr/share/swarmlab.io/sec/bin/make-all.sh new file mode 100644 index 0000000..2d309df --- /dev/null +++ b/install/usr/share/swarmlab.io/sec/bin/make-all.sh @@ -0,0 +1,37 @@ +#!/bin/bash + +SOURCE="${BASH_SOURCE[0]}" +while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink + TARGET="$(readlink "$SOURCE")" + if [[ $TARGET == /* ]]; then + #echo "SOURCE '$SOURCE' is an absolute symlink to '$TARGET'" + SOURCE="$TARGET" + else + DIR="$( dirname "$SOURCE" )" + #echo "SOURCE '$SOURCE' is a relative symlink to '$TARGET' (relative to '$DIR')" + SOURCE="$DIR/$TARGET" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located + fi +done + +SRPATH="$( dirname "$SOURCE" )" +SFPATH="$( cd -P "$( dirname "$SOURCE" )" && pwd )" +if [ "$SFPATH" != "$SRPATH" ]; then + RDIR=$SRPATH # relativ path directory +fi + +#echo "relativ" +#echo $SRPATH + +#echo "full path" +#echo $SFPATH + +#echo "relativ" +#echo $RDIR + +. $SFPATH/mainset.sh + + +cp -f $rp/docs/metaptyxiako.bib $rp/docs/metaptyxiako_bib.backup1 +$rp/bin/debug.sh +$rp/bin/make-bib.sh +$rp/bin/debug.sh diff --git a/install/usr/share/swarmlab.io/sec/bin/make-bib.sh b/install/usr/share/swarmlab.io/sec/bin/make-bib.sh new file mode 100644 index 0000000..0f7b8a4 --- /dev/null +++ b/install/usr/share/swarmlab.io/sec/bin/make-bib.sh @@ -0,0 +1,38 @@ +#!/bin/bash + + +SOURCE="${BASH_SOURCE[0]}" +while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink + TARGET="$(readlink "$SOURCE")" + if [[ $TARGET == /* ]]; then + #echo "SOURCE '$SOURCE' is an absolute symlink to '$TARGET'" + SOURCE="$TARGET" + else + DIR="$( dirname "$SOURCE" )" + #echo "SOURCE '$SOURCE' is a relative symlink to '$TARGET' (relative to '$DIR')" + SOURCE="$DIR/$TARGET" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located + fi +done + +SRPATH="$( dirname "$SOURCE" )" +SFPATH="$( cd -P "$( dirname "$SOURCE" )" && pwd )" +if [ "$SFPATH" != "$SRPATH" ]; then + RDIR=$SRPATH # relativ path directory +fi + +#echo "relativ" +#echo $SRPATH + +#echo "full path" +#echo $SFPATH + +#echo "relativ" +#echo $RDIR + +. $SFPATH/mainset.sh + + + +cp -f $rp/docs/metaptyxiako_bib.backup1 $rp/docs/metaptyxiako.bib + docker exec -it $dexec /bin/sh -c "biber main" + diff --git a/install/usr/share/swarmlab.io/sec/bin/make-clean-ant-compile.sh b/install/usr/share/swarmlab.io/sec/bin/make-clean-ant-compile.sh new file mode 100644 index 0000000..6b7503b --- /dev/null +++ b/install/usr/share/swarmlab.io/sec/bin/make-clean-ant-compile.sh @@ -0,0 +1,41 @@ +#!/bin/bash + + +SOURCE="${BASH_SOURCE[0]}" +while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink + TARGET="$(readlink "$SOURCE")" + if [[ $TARGET == /* ]]; then + #echo "SOURCE '$SOURCE' is an absolute symlink to '$TARGET'" + SOURCE="$TARGET" + else + DIR="$( dirname "$SOURCE" )" + #echo "SOURCE '$SOURCE' is a relative symlink to '$TARGET' (relative to '$DIR')" + SOURCE="$DIR/$TARGET" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located + fi +done + +SRPATH="$( dirname "$SOURCE" )" +SFPATH="$( cd -P "$( dirname "$SOURCE" )" && pwd )" +if [ "$SFPATH" != "$SRPATH" ]; then + RDIR=$SRPATH # relativ path directory +fi + +#echo "relativ" +#echo $SRPATH + +#echo "full path" +#echo $SFPATH + +#echo "relativ" +#echo $RDIR + +. $SFPATH/mainset.sh + +#echo $rp + + +cp -f $rp/docs/metaptyxiako.bib $rp/docs/metaptyxiako_bib.backup1 +$rp/bin/latex-clean.sh +$rp/bin/debug.sh +$rp/bin/make-bib.sh +$rp/bin/debug.sh