Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117750741
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
822 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
*/
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, 2:40 AM (5 d, 1 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
c4/e2/98808741c4e8e40c81555fe20679
Default Alt Text
get_horde_icalendar.sh (822 B)
Attached To
Mode
rRPK roundcubemail-plugins-kolab
Attached
Detach File
Event Timeline