mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
d4ee21532a
Default desktop files will be installed during compilation time; if this was done during installation time, files will be installed in superuser directory, which isn't the goal. Fixed Jamfile to use correct path.
21 lines
577 B
Bash
Executable File
21 lines
577 B
Bash
Executable File
#!/bin/sh
|
|
# Create ~/Desktop/ directory if not exists and installs target file. If directory
|
|
# exists but is empty, files will be also installed. If directory is not empty, it will do nothing.
|
|
|
|
desktop_dir="$HOME/Desktop"
|
|
targets="ede-xterm.desktop"
|
|
|
|
[ -d $desktop_dir ] || mkdir -p $desktop_dir
|
|
|
|
curr_dir=`dirname $0`
|
|
content=`ls $desktop_dir/*.desktop 2>>/dev/null`
|
|
|
|
# check if directory is empty and install if it does
|
|
if test "x$content" = "x"; then
|
|
echo "Preparing $desktop_dir for the first time..."
|
|
|
|
for file in $targets; do
|
|
cp $curr_dir/$file $desktop_dir
|
|
done
|
|
fi
|