Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (21 sloc) 767 Bytes
#!/bin/bash
destDir=$(eval echo ~${SUDO_USER})/Jamtaba2
#create the directory and set permissions
install -d -m 0777 $destDir
echo "Installing Jamtaba 2 in " $destDir
#copy all files preserving attributes
cp -rp . $destDir
#change the _DEST_DIR placeholder text in Jamtaba2.desktop file
sed -i "s|_DEST_DIR|$destDir|" Jamtaba2.desktop
#copy the .desktop file to Desktop and Applications folder
cp Jamtaba2.desktop ~/Desktop/
cp Jamtaba2.desktop /usr/share/applications/
#copy the icon
cp Jamtaba2.png /usr/share/pixmaps/
#permissions
chmod 777 $destDir/Jamtaba2
chmod 777 $destDir/VstScanner
chmod 777 $destDir/uninstaller.sh
chmod 777 ~/Desktop/Jamtaba2.desktop
chmod 777 /usr/share/applications/Jamtaba2.desktop
chmod 777 /usr/share/pixmaps/Jamtaba2.png
You can’t perform that action at this time.