Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Factory
easymock
generate-tarball.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File generate-tarball.sh of Package easymock
#!/bin/bash set -e name=easymock version="$(sed -n 's/Version:\s*//p' *.spec)" # RETRIEVE wget "https://github.com/${name}/${name}/archive/${name}-${version}.tar.gz" -O "${name}-${version}.orig.tar.gz" rm -rf tarball-tmp mkdir tarball-tmp cd tarball-tmp tar xzf "../${name}-${version}.orig.tar.gz" # CLEAN TARBALL find -name '*.jar' -delete find -name '*.class' -delete # Contains minified js of uncertain origin rm -r */website tar cJf "../${name}-${version}.tar.xz" * cd .. rm -r tarball-tmp "${name}-${version}.orig.tar.gz"
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor