mirror of
git://projects.qi-hardware.com/wernermisc.git
synced 2025-04-21 12:27:27 +03:00
mlt/wpan-ipv4/: demo setup and editing process for the wpan-ipv4 video
This commit is contained in:
23
mlt/wpan-ipv4/pex
Executable file
23
mlt/wpan-ipv4/pex
Executable file
@@ -0,0 +1,23 @@
|
||||
#!/bin/sh
|
||||
in=$1
|
||||
prompt="${1##*/}"
|
||||
prompt="${prompt%.*}"
|
||||
shift
|
||||
{
|
||||
read c
|
||||
while read c; do
|
||||
if [ "${c#!}" != "$c" ]; then
|
||||
eval "${c#!}" </dev/tty
|
||||
continue
|
||||
fi
|
||||
if [ "${c#:}" = "$c" ]; then
|
||||
cmd=$c
|
||||
else
|
||||
c=${c#:}
|
||||
read cmd
|
||||
fi
|
||||
echo -e -n "$prompt> \033[1m$c\033[m "
|
||||
read x </dev/tty
|
||||
eval "$cmd" </dev/tty
|
||||
done
|
||||
} <$in
|
||||
Reference in New Issue
Block a user