summaryrefslogtreecommitdiffstats
path: root/tools/update-packaging/test/catmanifest.sh
blob: 354c3ff4113f2b782fc66d17ff73011e0672504f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
# helper tool for testing.  Cats the manifest out of a mar file

mar="$1"
workdir="/tmp/catmanifest"

rm -rf "$workdir"
mkdir -p "$workdir"
cp "$1" "$workdir"
cd "$workdir"
mar -x "$1"
mv updatev2.manifest updatev2.manifest.bz2
bzip2 -d updatev2.manifest.bz2
cat updatev2.manifest