Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:strik
vice
debian.mangle-source.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File debian.mangle-source.sh of Package vice
#! /bin/sh MANGLEDIR=`pwd`/mangle.tmp MODULO=2048 set -e [ $# -eq 1 ] || { echo specify pristine tar-ball as argument; exit 1; } [ -r $1 ] || { echo tar-ball $1 is not readable; exit 2; } rm -fr $MANGLEDIR mkdir $MANGLEDIR gzip -d <"$1" | { cd $MANGLEDIR tar xf - cd vice* rm -f doc/vice.chm find data/* -type f -exec wc -c '{}' ';' | while read SIZE FILE; do if [ $SIZE -eq $(( ( $SIZE / $MODULO ) * $MODULO )) ] || [ "$FILE" = "data/PRINTER/mps803" ] ; then echo mangling $FILE $SIZE 1>&2 echo dummy > $FILE fi done cd .. tar cf - * } | bzip2 -c9 >"$1.mangled" rm -fr $MANGLEDIR echo Complete with: mv "$1.mangled" "$1.bz2" exit 0
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