shithub: mycel

ref: dfab56b94698b9ebb5291931a9f67c6cebac8881
dir: /package.rc/

View raw version
name='opossum-plan9-amd64'

rm -rf ./$name
mkdir ./$name
mkdir -p ./packages
chmod +t ./$name
mkdir ./$name/domino-lib

echo Testing...
go vet ./...
go test -cover ./...

echo Compiling...
cd cmd/browse
go build -o $name.bin
cd ../..
mv cmd/browse/$name.bin .
mv $name.bin ./$name/
cp README.md ./$name/
cp normalize.css ./$name/
cp possum-655x493.jpg ./$name/
dircp domino-lib ./$name/domino-lib
tarball=`{pwd} ^ '/packages/' ^ $name ^ '-v0.0.1-' ^ `{date -i} ^ '-' ^ `{cat /mnt/git/branch/heads/master/hash | read -c 6} ^ '.tgz'
tar czf $tarball $name
chmod +t $tarball
echo Created $tarball

echo Verifying $tarball ...
mkdir -p /tmp/`{date -n}
cd /tmp/`{date -n}
tar xf $tarball
cd $name
./$name.bin '-quiet=false'
./$name.bin '-experimentalJsInsecure=true' '-quiet=false'