File: desktopfile

package info (click to toggle)
sunclock 3.57-15
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,620 kB
  • sloc: ansic: 14,419; makefile: 815; perl: 111; sh: 33
file content (24 lines) | stat: -rwxr-xr-x 449 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
#
# validate desktop file
#
# (c) 2019  Roland Rosenfeld <roland@debian.org>

if [ -z "$AUTOPKGTEST_TMP" ]; then
    AUTOPKGTEST_TMP=$(mktemp -d)
fi

trap "rm -rf $AUTOPKGTEST_TMP" EXIT

cd $AUTOPKGTEST_TMP

OUTPUT=$(desktop-file-validate /usr/share/applications/sunclock.desktop)

if [ "$OUTPUT" = "" ]
then
    exit 0
else
    echo "desktop-file-valildate on sunclock.desktop create the following output:"
    echo $OUTPUT
    exit 1
fi