dotfiles

config files and scripts at HOME.
git clone git://git.ricketyspace.net/dotfiles.git
Log | Files | Refs

commit 41a647b86e1277c6abad42441d891080035f3c27
parent fb2adbccdc385e6f4e3a5a8e4873f4f703cb4c19
Author: rsiddharth <s@ricketyspace.net>
Date:   Mon,  1 May 2017 23:41:51 +0000

.bin/emacs-build: Update script name construction.

Diffstat:
.bin/emacs-build | 15+++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/.bin/emacs-build b/.bin/emacs-build @@ -5,11 +5,10 @@ # # systemd-nspawn container for building/making emacs -PWD=`pwd` CONTAINER_DIR=$HOME'/.containers' CONTAINER_NAME='emacs-build' CONTAINER=$CONTAINER_DIR'/'$CONTAINER_NAME -SCRIPT=`basename "$0"` +SCRIPT=`which "$0"` EMACS_DIR=$HOME"/v/git/others/emacs" @@ -18,8 +17,8 @@ if [ "$1" = "bootstrap" ]; then mkdir -p $CONTAINER_DIR sudo debootstrap --arch=amd64 testing $CONTAINER echo 'starting container' - sudo systemd-nspawn -D ./$CONTAINER \ - --bind-ro=$PWD/$SCRIPT:/root/$SCRIPT \ + sudo systemd-nspawn -D $CONTAINER \ + --bind-ro=$SCRIPT:/root/$SCRIPT \ /root/$SCRIPT install elif [ "$1" = "install" ]; then echo 'installing paraphernalia in container' @@ -33,14 +32,14 @@ elif [ "$1" = "install" ]; then elif [ "$1" = "start-container" ]; then echo 'starting container' sudo systemd-nspawn --setenv=DISPLAY=:0.0 \ - -D ./$CONTAINER \ - --bind-ro=$PWD/$SCRIPT:/root/$SCRIPT \ + -D $CONTAINER \ + --bind-ro=$SCRIPT:/root/$SCRIPT \ --bind=$EMACS_DIR:/root/emacs elif [ "$1" = "start-make" ]; then echo 'starting container' sudo systemd-nspawn --setenv=DISPLAY=:0.0 \ - -D ./$CONTAINER \ - --bind-ro=$PWD/$SCRIPT:/root/$SCRIPT \ + -D $CONTAINER \ + --bind-ro=$SCRIPT:/root/$SCRIPT \ --bind=$EMACS_DIR:/root/emacs \ /root/$SCRIPT make-emacs elif [ "$1" = "make-emacs" ]; then