128 |
|
|
129 |
[[ -z "$1" ]] && die "No xdg desktop file given" |
[[ -z "$1" ]] && die "No xdg desktop file given" |
130 |
|
|
131 |
# if no fullpath given use file from sourcedir |
# if -s given use file from sourcedir |
|
if [[ $1 = -s ]] |
|
|
then |
|
|
file="${SOURCEDIR}/${PNAME}/$2" |
|
|
destfile="$3" |
|
|
|
|
|
else |
|
|
file="$1" |
|
|
fi |
|
|
|
|
132 |
if [[ $1 = -s ]] |
if [[ $1 = -s ]] |
133 |
then |
then |
134 |
file="${SOURCEDIR}/${PNAME}/$2" |
file="${SOURCEDIR}/${PNAME}/$2" |
167 |
minstalldir ${destdir} || die |
minstalldir ${destdir} || die |
168 |
|
|
169 |
# install our xdg |
# install our xdg |
170 |
minstallfile ${file} ${BINDIR}/${destdir}/${destfile} || die |
minstallfile ${file} ${destdir}/${destfile} || die |
171 |
} |
} |