From e70cf7ba33f0d452af3264d2474a94232f667843 Mon Sep 17 00:00:00 2001 From: Julian Marcos Date: Fri, 24 Jun 2022 13:58:56 +0200 Subject: Maken editors generic in edit_program I have just maken `which nano` to be \$EDITOR --- ntcoin | 6 +++--- ntcoin_freebsd_tildeguru | 6 +++--- ntcoin_openbsd_tildeinstitute | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/ntcoin b/ntcoin index b781358..cdc1d2a 100755 --- a/ntcoin +++ b/ntcoin @@ -231,7 +231,7 @@ else && (/bin/cp "'`/usr/bin/realpath -s $1`'/tcoin/bin/tcoin_defs.cpp" "'`/usr/bin/realpath -s $2`'/tcoin_defs.cpp")' > "`/usr/bin/realpath -s $1`/tcoin/bin/compile_tcoin" /bin/chmod 540 "`/usr/bin/realpath -s $1`/tcoin/bin/compile_tcoin" /bin/echo '#!/bin/bash -'`which nano`' "'`/bin/pwd`'/tcoin.cpp"' > "`/usr/bin/realpath -s $1`/tcoin/bin/edit_tcoin" +'\$EDITOR' "'`/bin/pwd`'/tcoin.cpp"' > "`/usr/bin/realpath -s $1`/tcoin/bin/edit_tcoin" /bin/chmod 540 "`/usr/bin/realpath -s $1`/tcoin/bin/edit_tcoin" /bin/bash "`/usr/bin/realpath -s $1`/tcoin/bin/compile_tcoin" /bin/ln -s "`/usr/bin/realpath -s $1`/tcoin/bin/compile_tcoin" ~/"bin/compile_tcoin" @@ -253,14 +253,14 @@ else && (/bin/cp "'`/usr/bin/realpath -s $1`'/tcoin/bin/pcoin_defs.cpp" "'`/usr/bin/realpath -s $2`'/pcoin_defs.cpp")' > "`/usr/bin/realpath -s $1`/tcoin/bin/compile_pcoin" /bin/chmod 540 "`/usr/bin/realpath -s $1`/tcoin/bin/compile_pcoin" /bin/echo '#!/bin/bash -'`which nano`' "'`/bin/pwd`'/pcoin.cpp"' > "`/usr/bin/realpath -s $1`/tcoin/bin/edit_pcoin" +'\$EDITOR' "'`/bin/pwd`'/pcoin.cpp"' > "`/usr/bin/realpath -s $1`/tcoin/bin/edit_pcoin" /bin/chmod 540 "`/usr/bin/realpath -s $1`/tcoin/bin/edit_pcoin" /bin/bash "`/usr/bin/realpath -s $1`/tcoin/bin/compile_pcoin" /bin/ln -s "`/usr/bin/realpath -s $1`/tcoin/bin/compile_pcoin" ~/"bin/compile_pcoin" /bin/ln -s "`/usr/bin/realpath -s $1`/tcoin/bin/edit_pcoin" ~/"bin/edit_pcoin" fi /bin/echo '#!/bin/bash -'`which nano`' "'`/bin/pwd`'/pcoin.cpp" "'`/bin/pwd`'/tcoin.cpp"' > "`/usr/bin/realpath -s $1`/tcoin/bin/edit_ptcoin" +'\$EDITOR' "'`/bin/pwd`'/pcoin.cpp" "'`/bin/pwd`'/tcoin.cpp"' > "`/usr/bin/realpath -s $1`/tcoin/bin/edit_ptcoin" /bin/chmod 540 "`/usr/bin/realpath -s $1`/tcoin/bin/edit_ptcoin" /bin/ln -s "`/usr/bin/realpath -s $1`/tcoin/bin/edit_ptcoin" ~/"bin/edit_ptcoin" fi diff --git a/ntcoin_freebsd_tildeguru b/ntcoin_freebsd_tildeguru index be4aa1d..cd2020d 100755 --- a/ntcoin_freebsd_tildeguru +++ b/ntcoin_freebsd_tildeguru @@ -235,7 +235,7 @@ else && (/bin/cp "'`/bin/realpath -q $1`'/tcoin/bin/tcoin_defs.cpp" "'`/bin/realpath -q $2`'/tcoin_defs.cpp")' > "`/bin/realpath -q $1`/tcoin/bin/compile_tcoin" /bin/chmod 540 "`/bin/realpath -q $1`/tcoin/bin/compile_tcoin" /bin/echo '#!/usr/local/bin/bash -'`which nano`' "'`/bin/pwd`'/tcoin.cpp"' > "`/bin/realpath -q $1`/tcoin/bin/edit_tcoin" +'\$EDITOR' "'`/bin/pwd`'/tcoin.cpp"' > "`/bin/realpath -q $1`/tcoin/bin/edit_tcoin" /bin/chmod 540 "`/bin/realpath -q $1`/tcoin/bin/edit_tcoin" /usr/local/bin/bash "`/bin/realpath -q $1`/tcoin/bin/compile_tcoin" /bin/ln -s "`/bin/realpath -q $1`/tcoin/bin/compile_tcoin" ~/"bin/compile_tcoin" @@ -258,14 +258,14 @@ else && (/bin/cp "'`/bin/realpath -q $1`'/tcoin/bin/pcoin_defs.cpp" "'`/bin/realpath -q $2`'/pcoin_defs.cpp")' > "`/bin/realpath -q $1`/tcoin/bin/compile_pcoin" /bin/chmod 540 "`/bin/realpath -q $1`/tcoin/bin/compile_pcoin" /bin/echo '#!/usr/local/bin/bash -'`which nano`' "'`/bin/pwd`'/pcoin.cpp"' > "`/bin/realpath -q $1`/tcoin/bin/edit_pcoin" +'\$EDITOR' "'`/bin/pwd`'/pcoin.cpp"' > "`/bin/realpath -q $1`/tcoin/bin/edit_pcoin" /bin/chmod 540 "`/bin/realpath -q $1`/tcoin/bin/edit_pcoin" /usr/local/bin/bash "`/bin/realpath -q $1`/tcoin/bin/compile_pcoin" /bin/ln -s "`/bin/realpath -q $1`/tcoin/bin/compile_pcoin" ~/"bin/compile_pcoin" /bin/ln -s "`/bin/realpath -q $1`/tcoin/bin/edit_pcoin" ~/"bin/edit_pcoin" fi /bin/echo '#!/usr/local/bin/bash -'`which nano`' "'`/bin/pwd`'/pcoin.cpp" "'`/bin/pwd`'/tcoin.cpp"' > "`/bin/realpath -q $1`/tcoin/bin/edit_ptcoin" +'\$EDITOR' "'`/bin/pwd`'/pcoin.cpp" "'`/bin/pwd`'/tcoin.cpp"' > "`/bin/realpath -q $1`/tcoin/bin/edit_ptcoin" /bin/chmod 540 "`/bin/realpath -q $1`/tcoin/bin/edit_ptcoin" /bin/ln -s "`/bin/realpath -q $1`/tcoin/bin/edit_ptcoin" ~/"bin/edit_ptcoin" fi diff --git a/ntcoin_openbsd_tildeinstitute b/ntcoin_openbsd_tildeinstitute index 6488059..5a9a024 100755 --- a/ntcoin_openbsd_tildeinstitute +++ b/ntcoin_openbsd_tildeinstitute @@ -234,7 +234,7 @@ else && (/bin/cp "'`/usr/local/bin/grealpath -s $1`'/tcoin/bin/tcoin_defs.cpp" "'`/usr/local/bin/grealpath -s $2`'/tcoin_defs.cpp")' > "`/usr/local/bin/grealpath -s $1`/tcoin/bin/compile_tcoin" /bin/chmod 540 "`/usr/local/bin/grealpath -s $1`/tcoin/bin/compile_tcoin" /bin/echo '#!/usr/local/bin/bash -'`which nano`' "'`/bin/pwd`'/tcoin.cpp"' > "`/usr/local/bin/grealpath -s $1`/tcoin/bin/edit_tcoin" +'\$EDITOR' "'`/bin/pwd`'/tcoin.cpp"' > "`/usr/local/bin/grealpath -s $1`/tcoin/bin/edit_tcoin" /bin/chmod 540 "`/usr/local/bin/grealpath -s $1`/tcoin/bin/edit_tcoin" /usr/local/bin/bash "`/usr/local/bin/grealpath -s $1`/tcoin/bin/compile_tcoin" /bin/ln -s "`/usr/local/bin/grealpath -s $1`/tcoin/bin/compile_tcoin" ~/"bin/compile_tcoin" @@ -256,14 +256,14 @@ else && (/bin/cp "'`/usr/local/bin/grealpath -s $1`'/tcoin/bin/pcoin_defs.cpp" "'`/usr/local/bin/grealpath -s $2`'/pcoin_defs.cpp")' > "`/usr/local/bin/grealpath -s $1`/tcoin/bin/compile_pcoin" /bin/chmod 540 "`/usr/local/bin/grealpath -s $1`/tcoin/bin/compile_pcoin" /bin/echo '#!/usr/local/bin/bash -'`which nano`' "'`/bin/pwd`'/pcoin.cpp"' > "`/usr/local/bin/grealpath -s $1`/tcoin/bin/edit_pcoin" +'\$EDITOR' "'`/bin/pwd`'/pcoin.cpp"' > "`/usr/local/bin/grealpath -s $1`/tcoin/bin/edit_pcoin" /bin/chmod 540 "`/usr/local/bin/grealpath -s $1`/tcoin/bin/edit_pcoin" /usr/local/bin/bash "`/usr/local/bin/grealpath -s $1`/tcoin/bin/compile_pcoin" /bin/ln -s "`/usr/local/bin/grealpath -s $1`/tcoin/bin/compile_pcoin" ~/"bin/compile_pcoin" /bin/ln -s "`/usr/local/bin/grealpath -s $1`/tcoin/bin/edit_pcoin" ~/"bin/edit_pcoin" fi /bin/echo '#!/usr/local/bin/bash -'`which nano`' "'`/bin/pwd`'/pcoin.cpp" "'`/bin/pwd`'/tcoin.cpp"' > "`/usr/local/bin/grealpath -s $1`/tcoin/bin/edit_ptcoin" +'\$EDITOR' "'`/bin/pwd`'/pcoin.cpp" "'`/bin/pwd`'/tcoin.cpp"' > "`/usr/local/bin/grealpath -s $1`/tcoin/bin/edit_ptcoin" /bin/chmod 540 "`/usr/local/bin/grealpath -s $1`/tcoin/bin/edit_ptcoin" /bin/ln -s "`/usr/local/bin/grealpath -s $1`/tcoin/bin/edit_ptcoin" ~/"bin/edit_ptcoin" fi -- cgit 1.4.1-2-gfad0