Prefix build dirs
This commit is contained in:
parent
bceaf9262d
commit
f1117a1840
6
run.sh
6
run.sh
@ -13,7 +13,7 @@ if test "$(ls -A /tex)"; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Build in build dir
|
# Build in build dir
|
||||||
BUILD=$(date | sha256sum | cut -f1 -d' ')
|
BUILD=build-$(date | sha256sum | cut -f1 -d' ')
|
||||||
mkdir $BUILD
|
mkdir $BUILD
|
||||||
cd $BUILD
|
cd $BUILD
|
||||||
|
|
||||||
@ -35,10 +35,10 @@ if test "$(ls -A /tex)"; then
|
|||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
# Delete old symlink
|
# Delete old symlink
|
||||||
rm ./current 2>/dev/null
|
rm ./current-build 2>/dev/null
|
||||||
|
|
||||||
# Set 'current' symlink
|
# Set 'current' symlink
|
||||||
ln -sf $BUILD ./current
|
ln -sf $BUILD ./current-build
|
||||||
else
|
else
|
||||||
# Directory is empty
|
# Directory is empty
|
||||||
echo "$ECHOPREFIX Please mount your directory to /tex"
|
echo "$ECHOPREFIX Please mount your directory to /tex"
|
||||||
|
Loading…
Reference in New Issue
Block a user