Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Emulators:Oldies
arnold
arnold-repack-free
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File arnold-repack-free of Package arnold
#!/bin/bash REMOVE_DIRS=( arnold/src/win arnold/unzip32.dll ) set -o errexit CMDNAME=${0##*/} SOURCEDIR=${0%$CMDNAME} BASENAME=${1%.zip} cd "$SOURCEDIR" >/dev/null if ! test -f "$BASENAME.zip" ; then exit 0 fi if test -f "$BASENAME-free.tar.bz2" ; then if test "$BASENAME.zip" -ot "$BASENAME-free.tar.bz2" ; then if test $CMDNAME -ot "$BASENAME-free.tar.bz2" ; then exit 0 fi fi fi mkdir "$BASENAME-repack-tmp" cd "$BASENAME-repack-tmp" unzip -qq "$OLDPWD/$BASENAME.zip" for DIR in "${REMOVE_DIRS[@]}" ; do rm -r "$DIR" done rm -f "$OLDPWD/$BASENAME-free.tar.bz2" tar -jcf "$OLDPWD/$BASENAME-free.tar.bz2" * cd - rm -rf "$BASENAME-repack-tmp"
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