# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@octobus.net>
# Date 1685485046 -3600
#      Tue May 30 23:17:26 2023 +0100
# Node ID 47d60ed784a7a88cb420746b7f63c2525fc9592e
# Parent  0f3c8f0a2f8f433348d53afd49bc499efc59aa57
setup-base-dir: fix the proxy scripts

oops

diff --git a/bin/setup-base-dir b/bin/setup-base-dir
--- a/bin/setup-base-dir
+++ b/bin/setup-base-dir
@@ -43,15 +43,14 @@
         subprocess.run(command, check=True)
 
 
-POULPE_PROXY = """#!/bin/bash
-set -euo pipefail
-. `dirname $0`/activate
-poulpe "$@"
+POULPE_PROXY = """#!/usr/bin/bash
+base="`dirname $0`"
+"$base"/../.venv/bin/poulpe "$@"
 """
 
-BASH_PROXY = """#!/bin/bash
-set -euo pipefail
-. `dirname $0`/activate
+BASH_PROXY = """#!/usr/bin/bash
+base="`dirname $0`"
+. "$base"/../.venv/bin/activate
 "$@"
 """
 
@@ -62,7 +61,6 @@
 
     env_bin = Path("..") / ".venv" / "bin"
     dir_bin = Path("bin")
-    os.symlink(env_bin / "poulpe", dir_bin / "poulpe")
 
     poulpe_proxy = dir_bin / "poulpe"
     poulpe_proxy.write_text(POULPE_PROXY)