From f8d9217c8db8dda0a16f74e1ca8ea624f4dda803 Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Fri, 26 May 2023 12:32:10 -0700 Subject: [PATCH] Update include_legacy scripts with jar --- .chezmoiignore | 3 +++ dot_local/bin/executable_duck-encoder.tmpl | 6 ++++-- dot_local/bin/executable_filesize.tmpl | 2 +- dot_local/bin/executable_get-amazon-art.tmpl | 2 +- dot_local/bin/executable_mkpodcastplaylist.tmpl | 2 +- dot_local/bin/executable_mv-to-docs.tmpl | 2 +- dot_local/bin/executable_prefix-date.tmpl | 2 +- dot_local/bin/executable_send-toy-certs.tmpl | 2 +- .../{bin => share/duck-encoder}/duck-encoder.jar | Bin 9 files changed, 13 insertions(+), 8 deletions(-) rename dot_local/{bin => share/duck-encoder}/duck-encoder.jar (100%) diff --git a/.chezmoiignore b/.chezmoiignore index f90624b..744aae8 100644 --- a/.chezmoiignore +++ b/.chezmoiignore @@ -1,2 +1,5 @@ /hellotech/ /README.md +{{ if .include_legacy }} +/dot_local/bin/duck-encoder.jar +{{ end }} diff --git a/dot_local/bin/executable_duck-encoder.tmpl b/dot_local/bin/executable_duck-encoder.tmpl index 46c67f1..35b31c7 100755 --- a/dot_local/bin/executable_duck-encoder.tmpl +++ b/dot_local/bin/executable_duck-encoder.tmpl @@ -1,5 +1,7 @@ -{{ if .include_legacy }} +{{ if .include_legacy -}} #!/usr/bin/env bash -java -jar $(dirname $0)/duck-encoder.jar $* +java -jar "$XDG_DATA_HOME/duck-encoder/duck-encoder.jar" $* + +# vim: ft=bash {{- end }} diff --git a/dot_local/bin/executable_filesize.tmpl b/dot_local/bin/executable_filesize.tmpl index 29cc094..767f99b 100755 --- a/dot_local/bin/executable_filesize.tmpl +++ b/dot_local/bin/executable_filesize.tmpl @@ -1,4 +1,4 @@ -{{ if .include_legacy }} +{{ if .include_legacy -}} #!/usr/bin/env perl # Get sorted list files diff --git a/dot_local/bin/executable_get-amazon-art.tmpl b/dot_local/bin/executable_get-amazon-art.tmpl index 03c5297..4c62e06 100755 --- a/dot_local/bin/executable_get-amazon-art.tmpl +++ b/dot_local/bin/executable_get-amazon-art.tmpl @@ -1,4 +1,4 @@ -{{ if .include_legacy }} +{{ if .include_legacy -}} #!/usr/bin/env python """ This is a program that attempts to get all the album art from amazon diff --git a/dot_local/bin/executable_mkpodcastplaylist.tmpl b/dot_local/bin/executable_mkpodcastplaylist.tmpl index 46e9f8b..bd213de 100755 --- a/dot_local/bin/executable_mkpodcastplaylist.tmpl +++ b/dot_local/bin/executable_mkpodcastplaylist.tmpl @@ -1,4 +1,4 @@ -{{ if .include_legacy }} +{{ if .include_legacy -}} #!/usr/bin/env python3 from functools import partial diff --git a/dot_local/bin/executable_mv-to-docs.tmpl b/dot_local/bin/executable_mv-to-docs.tmpl index e45570f..5874cae 100755 --- a/dot_local/bin/executable_mv-to-docs.tmpl +++ b/dot_local/bin/executable_mv-to-docs.tmpl @@ -1,4 +1,4 @@ -{{ if .include_legacy }} +{{ if .include_legacy -}} #!/usr/bin/env python3 ''' diff --git a/dot_local/bin/executable_prefix-date.tmpl b/dot_local/bin/executable_prefix-date.tmpl index 930f1e3..bab01d0 100755 --- a/dot_local/bin/executable_prefix-date.tmpl +++ b/dot_local/bin/executable_prefix-date.tmpl @@ -1,4 +1,4 @@ -{{ if .include_legacy }} +{{ if .include_legacy -}} #!/usr/bin/env python3 import os diff --git a/dot_local/bin/executable_send-toy-certs.tmpl b/dot_local/bin/executable_send-toy-certs.tmpl index ca3c28d..a28007c 100755 --- a/dot_local/bin/executable_send-toy-certs.tmpl +++ b/dot_local/bin/executable_send-toy-certs.tmpl @@ -1,4 +1,4 @@ -{{ if .include_legacy }} +{{ if .include_legacy -}} #!/usr/bin/env bash sudo systemctl start lego@toy.xbudex.com.service scp /etc/ssl/certificates/toy.xbudex.com.crt toy.xbudex.com:AppData/Local/Syncthing/https-cert.pem diff --git a/dot_local/bin/duck-encoder.jar b/dot_local/share/duck-encoder/duck-encoder.jar similarity index 100% rename from dot_local/bin/duck-encoder.jar rename to dot_local/share/duck-encoder/duck-encoder.jar