print_usage()
{
- echo "${PROG_NAME} -- Conversion AVI à MP4 (x264)"
+ echo "${PROG_NAME} -- Conversion MP4 (x264)"
echo "Usage: ${PROG_NAME} [OPTIONS...] FICHIER"
echo
echo "Options:"
exit 1
fi
-dest=`echo "${src}" | sed s/\.avi$/.mp4/g`
+# Cut everything after the last dot using sed:
+dest=`echo "${src}" | sed s/\.[^.]*$//`
+dest="${dest}.mp4"
ffmpeg -i "${src}" ${VIDEO_OPTS} ${audio_opts} "${dest}"
--- /dev/null
+#!/bin/bash
+
+SCRIPT="`readlink -e $0`"
+SCRIPTPATH=$(dirname ${SCRIPT})
+source ${SCRIPTPATH}/hv-git-functions.sh
+
+print_usage()
+{
+ echo "$(basename $0) -- Start gitk for each subrepository"
+ echo "Usage: $(basename $0) [OPTIONS...]"
+}
+
+if [ "x${1}" = "x--help" ]; then
+ print_usage
+ exit 1
+fi
+
+if [ ${#} -ne 0 ]; then
+ echo "Unsupported argument(s)"
+ print_usage
+ exit 1
+fi
+
+hv_git_validate_subrepos_list
+
+branch=${1}
+rc=0
+
+for r in ./ $(hv_git_get_subrepos_list); do
+ # Make sure directory exists
+ if [ ! -d "${r}" ]; then
+ echo "Skipping missing repos ${r}"
+ continue
+ fi
+
+ pushd ${r} 1> /dev/null
+ gitk &
+ popd 1> /dev/null
+ rc=${?}
+done
+
+exit ${rc}