Commit 5bf2a5ae authored by Adrien Dorsaz's avatar Adrien Dorsaz

Use directly without using

parent 75764ac9
......@@ -40,10 +40,15 @@ mkdir -p "${tmpnotes}"
echo "Transferring events to qtopia_db"
for filename in ./*.ics
echo "Creating temporary copy of $filename with valid lines into db $caldb"
# Create a copy and remove X-MOZ-LASTACK lines that are not understood by Tie::iCal
# FIXME Check if really needed with latest scripts
grep -v X-MOZ-LASTACK "${filename}" > "${filename}.tmp"
if [ -n "$verbose" ] ; then
./ -v "$filename" /home/root/Applications/Qtopia/qtopia_db.sqlite
perl -- -v --ical "${filename}.tmp" --qtopiadb "$icaldb" --notesdirectory "$tmpnotes"
./ "$filename" /home/root/Applications/Qtopia/qtopia_db.sqlite
perl -- --ical "${filename}.tmp" --qtopiadb "$icaldb" --notesdirectory "$tmpnotes"
......@@ -53,7 +58,8 @@ rm -f "${notes}"/0-*
echo "Copying Note files"
cp "${tmpnotes}"/* "${notes}"
echo "Removing *.ics local files"
echo "Removing *.ics local files and *.ics.tmp temporary files"
rm *.ics
rm *.ics.tmp
echo "Done"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment