root/make-alias

Revision a58afe8e62c672b06e047f2475e69977908dbb7d, 265 bytes (checked in by Rémi Denis-Courmont <rem@videolan.org>, 5 months ago)

Build VLC aliases cleanly (don't need to parse argv[0])

  • Property mode set to 100755
Line 
1 #! /bin/sh
2 # Interface alias build script for VLC
3 # Copyright © 2007 Rémi Denis-Courmont.
4
5 OUT="$1"
6 IFACE="$2"
7
8 cat > "$OUT.tmp" << EOF
9 #! /bin/sh
10 exec $bindir/`echo vlc | sed -e "$transform"` -I "$IFACE" "\$@"
11 EOF
12
13 chmod +x "$OUT.tmp"
14 mv -f -- "$OUT.tmp" "$OUT"
Note: See TracBrowser for help on using the browser.