2013-05-08 22:03:21 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# usage: sanitize-tarball.sh [tarball]
|
|
|
|
|
2013-05-28 17:37:37 +00:00
|
|
|
if [ "x$1" = "x" ]; then
|
|
|
|
echo "Usage: sanitize-tarball.sh [tarball]"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2013-05-14 21:33:42 +00:00
|
|
|
if [ -e /usr/bin/pxz ]; then
|
|
|
|
XZ=/usr/bin/pxz
|
|
|
|
else
|
|
|
|
XZ=/usr/bin/xz
|
|
|
|
fi
|
|
|
|
|
2013-05-08 22:03:21 +00:00
|
|
|
dirname=$(basename $(basename "$1" .tar.bz2) .tar.xz)
|
|
|
|
|
|
|
|
tar xf "$1"
|
|
|
|
pushd $dirname
|
|
|
|
|
|
|
|
cat > src/gallium/auxiliary/vl/vl_mpeg12_decoder.c << EOF
|
|
|
|
#include "vl_mpeg12_decoder.h"
|
2013-12-01 12:51:48 +00:00
|
|
|
struct pipe_video_codec *
|
2013-12-05 06:24:55 +00:00
|
|
|
vl_create_mpeg12_decoder(struct pipe_context *context,
|
2013-12-01 12:51:48 +00:00
|
|
|
const struct pipe_video_codec *templat)
|
2013-05-08 22:03:21 +00:00
|
|
|
{
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat > src/gallium/auxiliary/vl/vl_decoder.c << EOF
|
|
|
|
#include "vl_decoder.h"
|
2013-12-01 12:51:48 +00:00
|
|
|
bool
|
|
|
|
vl_profile_supported(struct pipe_screen *screen, enum pipe_video_profile profile,
|
|
|
|
enum pipe_video_entrypoint entrypoint)
|
2013-05-08 22:03:21 +00:00
|
|
|
{
|
2013-12-01 12:51:48 +00:00
|
|
|
return false;
|
2013-05-08 22:03:21 +00:00
|
|
|
}
|
2013-12-01 12:51:48 +00:00
|
|
|
|
|
|
|
int
|
|
|
|
vl_level_supported(struct pipe_screen *screen, enum pipe_video_profile profile)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
struct pipe_video_codec *
|
2013-05-08 22:03:21 +00:00
|
|
|
vl_create_decoder(struct pipe_context *pipe,
|
2013-12-01 12:51:48 +00:00
|
|
|
const struct pipe_video_codec *templat)
|
2013-05-08 22:03:21 +00:00
|
|
|
{
|
2013-12-01 12:51:48 +00:00
|
|
|
return NULL;
|
2013-05-08 22:03:21 +00:00
|
|
|
}
|
|
|
|
EOF
|
|
|
|
|
|
|
|
popd
|
2013-05-14 21:33:42 +00:00
|
|
|
tar cf - $dirname | $XZ > $dirname.tar.xz
|