]> git.sesse.net Git - vlc/blobdiff - doc/demo.sh
Remove (very very) old Win32 cross-compilation howto
[vlc] / doc / demo.sh
index c0c9a9dfa66b6d99dec3df4ebe832f2ecc7dd295..64909826b5985e3b3ccf72f92506c3b4042e9039 100755 (executable)
@@ -6,13 +6,17 @@
 ########################################################################
 
 #TODO: change on Max OS X
-VLC="./vlc --quiet --color "
+if test ".`uname -s`" = ".Darwin"; then
+  VLC="./VLC.app/Contents/MacOS/VLC --quiet --color "
+else
+  VLC="./vlc --quiet --color "
+fi
 CMD=""
 
 pyschedelic()
 {
   echo -e "\n- Psychedelic demo -\nconfiguration\n"
-  echo -en "Please chose an input. Live camera feeds are best.\ninput? "
+  echo -en "Please choose an input. Live camera feeds are best.\ninput? "
   read input
   echo -e "\n$VLC --sub-filter marq --marq-position 8 --marq-size 30 --marq-color 16776960 --marq-marquee \"VLC - Psychedelic video filter\" --vout-filter distort --distort-mode psychedelic $input"
 }
@@ -20,9 +24,9 @@ pyschedelic()
 gradient()
 {
   echo -e "\n- Gradient demo -\nconfiguration\n"
-  echo -en "Please chose an input. Live camera feeds are best.\ninput? "
+  echo -en "Please choose an input. Live camera feeds are best.\ninput? "
   read input
-  echo -en "Please chose a logo to display (or multiple logos according to the --logo-file syntax)\nlogo? "
+  echo -en "Please choose a logo to display (or multiple logos according to the --logo-file syntax)\nlogo? "
   read logofile
   echo "new a broadcast enabled loop
 setup a input $input
@@ -35,9 +39,9 @@ control a play" > "`pwd`/demo.vlm"
 mosaic()
 {
   echo -e "\n- Mosaic demo -\nconfiguration\n"
-  echo -en "Please chose a background input.\nbackground input? "
+  echo -en "Please choose a background input.\nbackground input? "
   read bg
-  echo -en "Please chose a video to blend.\nvideo? "
+  echo -en "Please choose a video to blend.\nvideo? "
   read vid
   echo "new a broadcast enabled loop
 setup a input $vid
@@ -50,7 +54,7 @@ control a play" > "`pwd`/demo.vlm"
 opengl()
 {
   echo -e "\n- OpenGL cube demo -\nconfiguration\n"
-  echo -en "Please chose an input.\ninput? "
+  echo -en "Please choose an input.\ninput? "
   read input
   echo -e "\n$VLC -V opengl --opengl-effect transparent-cube $input"
 }
@@ -58,7 +62,7 @@ opengl()
 wall()
 {
   echo -e "\n- Video wall demo -\nconfiguration\n"
-  echo -en "Please chose an input.\ninput? "
+  echo -en "Please choose an input.\ninput? "
   read input
   echo -en "Do you want to use rotated laptops/screens ?\n[y/N] "
   read rot
@@ -92,7 +96,7 @@ case "$choice" in
  3) mosaic;;
  4) opengl;;
  5) wall;;
- *) echo "Wrong answer ... try again"; exit 1;;
+ *) echo "Unrecognized input, please try again"; exit 1;;
 esac
 
 echo -e "\nUse the previous command to run the demo."