summaryrefslogtreecommitdiff
path: root/admin/nt
diff options
context:
space:
mode:
authorPhillip Lord <phillip.lord@russet.org.uk>2021-01-03 18:35:25 +0000
committerPhillip Lord <phillip.lord@russet.org.uk>2021-01-03 21:05:45 +0000
commit1fa1354964aa3a0e5e649df6c963b6c11333a350 (patch)
tree39691cefedd8ee633fbdba5a0439e8dfda9724b9 /admin/nt
parent32c6732d16385f242b1109517f25e9aefd6caa5c (diff)
downloademacs-1fa1354964aa3a0e5e649df6c963b6c11333a350.tar.gz
Remove relative paths for consistency
* admin/nt/dist-build/build-zips.sh: Remove Paths
Diffstat (limited to 'admin/nt')
-rwxr-xr-xadmin/nt/dist-build/build-zips.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/admin/nt/dist-build/build-zips.sh b/admin/nt/dist-build/build-zips.sh
index 809cbc65cac..4a9a7b596e7 100755
--- a/admin/nt/dist-build/build-zips.sh
+++ b/admin/nt/dist-build/build-zips.sh
@@ -20,7 +20,7 @@
function git_up {
echo [build] Making git worktree for Emacs $VERSION
- cd $HOME/emacs-build/git/emacs-$MAJOR_VERSION
+ cd $REPO_DIR/emacs-$MAJOR_VERSION
git pull
git worktree add ../$BRANCH $BRANCH
@@ -54,7 +54,7 @@ function build_zip {
if [ ! -f Makefile ] || (($CONFIG))
then
echo [build] Configuring Emacs $ARCH
- ../../../git/$BRANCH/configure \
+ $REPO_DIR/$BRANCH/configure \
--without-dbus \
--host=$HOST --without-compress-install \
$CACHE \
@@ -88,7 +88,7 @@ function build_installer {
ARCH=$1
cd $HOME/emacs-build/install/emacs-$VERSION
echo [build] Calling makensis in `pwd`
- cp ../../git/$BRANCH/admin/nt/dist-build/emacs.nsi .
+ cp $REPO_DIR/$BRANCH/admin/nt/dist-build/emacs.nsi .
makensis -v4 \
-DARCH=$ARCH -DEMACS_VERSION=$ACTUAL_VERSION \
@@ -110,6 +110,10 @@ CONFIG=1
CFLAGS="-O2 -static"
INSTALL_TARGET="install-strip"
+## The location of the git repo
+REPO_DIR=$HOME/emacs-build/git/
+
+
while getopts "36gb:hnsiV:" opt; do
case $opt in
3)