Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117751980
get_horde_icalendar.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
931 B
Referenced Files
None
Subscribers
None
get_horde_icalendar.sh
View Options
#!/bin/sh
# Copy Horde_iCalendar classes and dependencies to stdout.
# This will create a standalone copy of the classes requried for iCal parsing.
SRCDIR
=
$1
if
[
! -d
"
$SRCDIR
"
]
;
then
echo
"Usage: get_horde_icalendar.sh SRCDIR"
echo
"Please enter a valid source directory of the Horde lib"
exit
1
fi
echo
"<?php
/**
* This is a concatenated copy of the following files:
* Horde/String.php, Horde/iCalendar.php, Horde/iCalendar/*.php
* Pull the latest version of these file from the PEAR channel of the Horde project at http://pear.horde.org
*/
require_once(dirname(__FILE__) . '/Horde_Date.php');"
sed
's/<?php//; s/?>//'
$SRCDIR
/String.php
echo
"\n"
sed
's/<?php//; s/?>//'
$SRCDIR
/iCalendar.php
|
sed -E
"s/include_once.+//; s/NLS::getCharset\(\)/'UTF-8'/"
echo
"\n"
for
fn
in
`
ls
$SRCDIR
/iCalendar/*.php
|
grep -v
'vcard.php'
`
;
do
sed
's/<?php//; s/?>//'
$fn
|
sed -E
"s/(include|require)_once.+//"
done
;
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Sat, Apr 4, 3:39 AM (1 d, 22 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
b7/a9/f991185e9e9a86e7bb08aba3b863
Default Alt Text
get_horde_icalendar.sh (931 B)
Attached To
Mode
rRPK roundcubemail-plugins-kolab
Attached
Detach File
Event Timeline