X-Git-Url: https://iankelling.org/git/?p=buildscripts;a=blobdiff_plain;f=emacs;fp=emacs;h=6acef0bc269d6deac5b672767e6d29a5e92d7596;hp=b2c97406a9c12f44c032806cbf2a5116fa70555a;hb=65a0d6984b02937e49093c32c37b5cfbc26e3b79;hpb=e9fda13d66976d9d0934a3c21f218cedfde47ac8 diff --git a/emacs b/emacs index b2c9740..6acef0b 100755 --- a/emacs +++ b/emacs @@ -1,4 +1,4 @@ -#!/bin/bash -l +#!/bin/bash # Copyright (C) 2016 Ian Kelling # Licensed under the Apache License, Version 2.0 (the "License"); @@ -13,8 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -set -eE -o pipefail -trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?"' ERR +if [[ -s ~/.bashrc ]];then . ~/.bashrc;fi #set -x # arg = git commit to check out @@ -146,7 +145,7 @@ if $recompile || [[ $rev != "$head" ]]; then logq sudo make install # make emacs always work for root - s /a/exe/lnf /usr/local/bin/emacs /usr/bin + sudo /a/exe/lnf /usr/local/bin/emacs /usr/bin echo $head >~/.local/emacs-build-git-revision fi @@ -161,7 +160,7 @@ rev=$(cat ~/.local/mu-build-git-revision 2>/dev/null) ||: head=$(git rev-parse HEAD) if $recompile || [[ $rev != "$head" ]]; then - if [[ $(distro-name) == trisquel ]]; then + if [[ $(debian-codename) == flidas ]]; then # use the flidas branch, stuck behind because # needs newer crypt libraries that are too troublesome. cd /a/opt/muflidas