-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathinstall
executable file
·27 lines (27 loc) · 1.11 KB
/
install
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
if [ $# -eq 0 ]
then DESTDIR=""
elif [ $(echo -n "$1" | tail -c -1) = "/" ]
then DESTDIR=$(echo -n "$1" | head -c -1)
else DESTDIR="$1"
fi
install -d $DESTDIR/etc
install -d $DESTDIR/usr/bin
install -d $DESTDIR/usr/share/applications
install -d $DESTDIR/usr/share/doc/silentcast
install -d $DESTDIR/usr/share/licenses
install -d $DESTDIR/usr/share/icons/hicolor/24x24/apps
install -d $DESTDIR/usr/share/icons/hicolor/32x32/apps
install -d $DESTDIR/usr/share/icons/hicolor/48x48/apps
install -d $DESTDIR/usr/share/icons/hicolor/64x64/apps
install -d $DESTDIR/usr/share/icons/hicolor/128x128/apps
install -d $DESTDIR/usr/share/icons/hicolor/256x256/apps
install -m644 scpkg/silentcast.conf $DESTDIR/etc
install -m644 scpkg/silentcast_presets $DESTDIR/etc
install -m755 scpkg/silentcast $DESTDIR/usr/bin
install -m644 scpkg/silentcast.desktop $DESTDIR/usr/share/applications
install -m644 README.md $DESTDIR/usr/share/doc/silentcast
install -m644 COPYING $DESTDIR/usr/share/licenses
for i in 24x24 32x32 48x48 64x64 128x128 256x256
do install -m644 scpkg/$i/silentcast.png "$DESTDIR"/usr/share/icons/hicolor/$i/apps
done