Replace evaluating a shell script with tangling a configuration file

This commit is contained in:
Gerard Vermeulen 2022-11-06 17:53:16 +01:00
parent 6573a54cc2
commit 1d3d0b65f2
1 changed files with 1 additions and 3 deletions

View File

@ -5339,8 +5339,7 @@ Darwin that keeps each new connection for a day in order to reduce the rate of
#+caption[A Music Player Daemon configuration file on Darwin]:
#+caption: A Music Player Daemon configuration file on Darwin.
#+name: lst:darwin-mpd-conf
#+begin_src shell :eval (if (eq 'darwin system-type) "yes" "never") :results silent
cat <<EOF > ~/.mpd/mpd.conf
#+begin_src conf :tangle (if (eq 'darwin system-type) "~/.mpd/mpd.conf" "no")
music_directory "~/Music"
playlist_directory "~/.mpd/playlists"
db_file "~/.mpd/mpd.db"
@ -5359,7 +5358,6 @@ Darwin that keeps each new connection for a day in order to reduce the rate of
name "CoreAudio"
mixer_type "software"
}
EOF
#+end_src
* [[info:emacs#Init File][Init File (info)]] footer