Browse Source

cp makeclean

master
zeus 1 year ago
parent
commit
6cbd37e6cc
  1. 41
      install/usr/share/swarmlab.io/sec/bin/make-clean-and-compile.sh

41
install/usr/share/swarmlab.io/sec/bin/make-clean-and-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
Loading…
Cancel
Save