File: check_event

package info (click to toggle)
libopensync-plugin-evolution2 0.22-2squeeze1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 1,536 kB
  • ctags: 75
  • sloc: sh: 8,800; ansic: 904; makefile: 85
file content (17 lines) | stat: -rwxr-xr-x 471 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

echo "This unit test will empty all events from evolution2. Do you want to continue?"
echo "[y/N]"
read -n 1 reply
if [ "$reply" != "y" ]
then
        exit 1
fi

TMPFILE=`mktemp /tmp/evo2-sync.XXXXXX` || exit 1
echo "<config><adress_path>default</adress_path><calendar_path>default</calendar_path><tasks_path>default</tasks_path></config>" > $TMPFILE

osyncplugin evo2-sync --config $TMPFILE --type event --plugindir ../src/.libs  || exit 1

rm -f $TMPFILE