soap

simple xdg-open replacement with fallback
git clone git://git.2f30.org/soap.git
Log | Files | Refs | LICENSE

commit 707c92d9d9d5fb128f976c4d450eb854baa72325
parent 59adcd33c1e354bfddfdd4ae86c142a348957a39
Author: Svyatoslav Mishyn <juef@openmailbox.org>
Date:   Tue Aug  9 16:16:18 +0300

Makefile: add appropriate rule for creating config.h from default one

Diffstat:
Makefile | 6+++++-
config.def.h | 9+++++++++
config.h | 9---------
3 files changed, 14 insertions(+), 10 deletions(-)
diff --git a/Makefile b/Makefile @@ -17,7 +17,11 @@ options: @echo CC $< @${CC} -c ${CFLAGS} $< -${OBJ}: config.mk +${OBJ}: config.h config.mk + +config.h: + @echo creating $@ from config.def.h + @cp config.def.h $@ soap: ${OBJ} @echo CC -o $@ diff --git a/config.def.h b/config.def.h @@ -0,0 +1,9 @@ +/* See LICENSE file for copyright and license details. */ + +static const Pair pairs[] = { + /* regex action */ + { "\.(jpg|png|tiff)$", "feh %s" }, + { "\.gif$", "wget -O /tmp/tmp_gifview.gif %s && gifview -a /tmp/tmp_gifview.gif" }, + { "\.mp3$", "st -e mplayer %s" }, + { "^(http://|https://)?(www\.)?(youtube.com/watch\?|youtu\.be/)", "youtube-viewer %s" } +}; diff --git a/config.h b/config.h @@ -1,9 +0,0 @@ -/* See LICENSE file for copyright and license details. */ - -static const Pair pairs[] = { - /* regex action */ - { "\.(jpg|png|tiff)$", "feh %s" }, - { "\.gif$", "wget -O /tmp/tmp_gifview.gif %s && gifview -a /tmp/tmp_gifview.gif" }, - { "\.mp3$", "st -e mplayer %s" }, - { "^(http://|https://)?(www\.)?(youtube.com/watch\?|youtu\.be/)", "youtube-viewer %s" } -};