Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:fschuett
oss-moodle
create_archive
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File create_archive of Package oss-moodle
#!/bin/bash # # Frank Schütte fschuett@gymhim.de 2017 # [ -e oss-moodle.spec ] || exit 1 [ -d moodle ] || exit 1 VERSION=$(cat oss-moodle.spec |grep '^Version:'|sed 's/Version:[[:space:]]*//') RELEASE=$(cat moodle/version.php|sed -n "s@^\$release[[:space:]]*=[[:space:]]*'\([[:digit:]]\+\(\.[[:digit:]]\+\)\{1,2\}\)+*[[:space:]]*(.*@\1@p") DIRS=$(find . -maxdepth 1 -type d -not -name .osc -and -not -name .|sed 's@.\/@@'|tr '\n' ' ') if [ ! "$RELEASE" = "$VERSION" ] then echo "Die Version in moodle/version.php($RELEASE) und oss-moodle.spec($VERSION) unterscheiden sich." exit 1 fi echo -n "Creating archive oss-moodle-${VERSION}.tar.gz from subdirs ${DIRS}..." tar czf oss-moodle-${VERSION}.tar.gz --exclude=.git ${DIRS} echo " done."
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