Take program prefix and suffix into account in the make-alias script.
authorAntoine Cellerier <antoine@macbook.(none)>
Sun, 25 May 2008 22:11:33 +0000 (00:11 +0200)
committerAntoine Cellerier <antoine@macbook.(none)>
Sun, 25 May 2008 22:11:33 +0000 (00:11 +0200)
Makefile.am
make-alias

index a4b9ed5..e8720e9 100644 (file)
@@ -353,7 +353,7 @@ EXTRA_SCRIPTS = $(ALL_ALIASES)
 
 dist_noinst_SCRIPTS += make-alias
 
-MKALIAS = bindir="$(bindir)" transform="$(transform)" $(top_srcdir)/make-alias $@
+MKALIAS = bindir="$(bindir)" transform="$(transform)" program_prefix="$(program_prefix)" program_suffix="$(program_suffix)" $(top_srcdir)/make-alias $@
 
 cvlc: make-alias
        $(MKALIAS) dummy
index e655ab3..df67b4e 100755 (executable)
@@ -7,7 +7,7 @@ IFACE="$2"
 
 cat > "$OUT.tmp" << EOF
 #! /bin/sh
-exec $bindir/`echo vlc | sed -e "$transform"` -I "$IFACE" "\$@"
+exec $bindir/`echo "$program_prefix"vlc"$program_suffix" | sed -e "$transform"` -I "$IFACE" "\$@"
 EOF
 
 chmod +x "$OUT.tmp"