Permalink
Browse files

Take program prefix and suffix into account in the make-alias script.

  • Loading branch information...
1 parent c6b1b02 commit 3dfed6db962960e045721ff09fc7ef624635c3df Antoine Cellerier committed May 25, 2008
Showing with 2 additions and 2 deletions.
  1. +1 −1 Makefile.am
  2. +1 −1 make-alias
View
2 Makefile.am
@@ -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
View
2 make-alias
@@ -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"

0 comments on commit 3dfed6d

Please sign in to comment.