Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:weberho:UNSTABLE:tine20
tine20
find_php_files.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File find_php_files.sh of Package tine20
#!/bin/sh # # find .mo files for PHP applications # TOPDIR="$1" shift PACKAGE="$1" shift if [ -e "$PACKAGE.lang.new" ] ; then rm -f "$PACKAGE.lang.new" fi while [ $# -ge 1 ] ; do SEARCHPATH="$1" shift if [ ! -e "$TOPDIR/$SEARCHPATH" ] ; then echo "$TOPDIR/$SEARCHPATH does not exist!" 1>&$ exit 1 fi echo "%defattr(0644, root, root, 0755)" >> "$PACKAGE.lang.new" find "$TOPDIR/$SEARCHPATH" -type f | sed -e "s|^$TOPDIR||" >> "$PACKAGE.lang.new" find "$TOPDIR/$SEARCHPATH" -type l | sed -e "s|^$TOPDIR||" >> "$PACKAGE.lang.new" find "$TOPDIR/$SEARCHPATH" -type d | sed -e "s|^$TOPDIR|%dir |">> "$PACKAGE.lang.new" done sed "$PACKAGE.lang.new" \ -e "s|\(/.*\)\/\([a-zA-Z_]*\)\.[mp]o$|%lang(\2) \1/\2.[mp]o| ; s|\/\/|\/| " \ | sort -u > "$PACKAGE.lang" rm "$PACKAGE.lang.new"
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