* [ANN] dtas 0.19.0 - duct tape audio suite for *nix
@ 2021-09-05 8:44 6% Eric Wong
0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2021-09-05 8:44 UTC (permalink / raw)
To: dtas-all, ruby-talk
Free Software command-line tools for audio playback, mastering, and
whatever else related to audio. dtas follows the worse-is-better
philosophy and acts as duct tape to combine existing command-line tools
for flexibility and ease-of-development. dtas is currently implemented
in Ruby (and some embedded shell), but may use other languages in the
future.
Changes:
dtas 0.19.0 - odd pathname fixes
Non-UTF-8-encoded pathnames now handled properly by dtas-mlib.
Shell-unfriendly filenames are handled properly if they require
ffmpeg (they were always handled properly when using sox).
Some minor URL and doc updates, too, and there's a new
"make symlink-install" target for users who lack permissions
to install RubyGems.
6 changes since v0.18.1 (2021-02-13):
mlib: pathnames may be blobs
README: replace NNTP URL with NNTPS
gemspec: allow building gem without setting VERSION
build: add "symlink-install" target
do not shell-quote filenames for environment
doc: use Tor v3 .onion URLs
* homepage: https://80x24.org/dtas/
* https://80x24.org/dtas/INSTALL
* https://80x24.org/dtas/dtas-player.txt
* https://80x24.org/dtas/NEWS.atom
* git clone https://80x24.org/dtas.git
* dtas-all@nongnu.org (plain-text only, no HTML mail, please)
* mail archives: https://80x24.org/dtas-all/
nntps://news.public-inbox.org/inbox.comp.audio.dtas
imaps://anon:mous@public-inbox.org/inbox.comp.audio.dtas.0
nntp://7fh6tueqddpjyxjmgtdiueylzoqt6pt7hec3pukyptlmohoowvhde4yd.onion/inbox.comp.audio.dtas
imap://anon:mous@7fh6tueqddpjyxjmgtdiueylzoqt6pt7hec3pukyptlmohoowvhde4yd.onion/inbox.comp.audio.dtas.0
https://80x24.org/dtas-all/new.atom
note: .onion URLs require Tor: <https://www.torproject.org/>
^ permalink raw reply [relevance 6%]
* [PATCH] build: add "symlink-install" target
@ 2021-04-29 8:26 7% Eric Wong
0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2021-04-29 8:26 UTC (permalink / raw)
To: dtas-all
This is useful for users relying on system Ruby and lack
permissions to install gems.
---
GNUmakefile | 14 +++++++++++++-
dtas.sh | 7 +++++++
2 files changed, 20 insertions(+), 1 deletion(-)
create mode 100755 dtas.sh
diff --git a/GNUmakefile b/GNUmakefile
index e5914b2..084a2d8 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -1,4 +1,4 @@
-# Copyright (C) 2013-2020 all contributors <dtas-all@nongnu.org>
+# Copyright (C) 2013-2021 all contributors <dtas-all@nongnu.org>
# License: GPL-3.0+ <https://www.gnu.org/licenses/gpl-3.0.txt>
all::
pkg = dtas
@@ -74,5 +74,17 @@ $(pkgtgz): .tgz-manifest
package: $(pkgtgz) $(pkggem)
+# Install symlinks to ~/bin (which is hopefuly in PATH) which point to
+# this source tree.
+# prefix + bindir matches git.git Makefile:
+prefix = $(HOME)
+bindir = $(prefix)/bin
+symlink-install :
+ mkdir -p $(bindir)
+ dtas=$(CURDIR)/dtas.sh && cd $(bindir) && \
+ for x in $(CURDIR)/bin/*; do \
+ ln -sf "$$dtas" $$(basename "$$x"); \
+ done
+
.PHONY: all .FORCE-GIT-VERSION-FILE test $(test_units) NEWS
.PHONY: check-warnings fix-perms
diff --git a/dtas.sh b/dtas.sh
new file mode 100755
index 0000000..d3ea5e1
--- /dev/null
+++ b/dtas.sh
@@ -0,0 +1,7 @@
+#!/bin/sh -e
+# symlink this file to a directory in PATH to run dtas (or anything in bin/*)
+# without needing perms to install globally. Used by "make symlink-install"
+p=$(realpath "$0" || readlink "$0") # neither is POSIX, but common
+p=$(dirname "$p") c=$(basename "$0") # both are POSIX
+exec ${RUBY-ruby} -I"$p"/lib "$p"/bin/"${c%.sh}" "$@"
+: this script is too short to copyright
^ permalink raw reply related [relevance 7%]
Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2021-04-29 8:26 7% [PATCH] build: add "symlink-install" target Eric Wong
2021-09-05 8:44 6% [ANN] dtas 0.19.0 - duct tape audio suite for *nix Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/dtas.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).