Skip to content

Commit

Permalink
update install script for what should be the last time (at least for …
Browse files Browse the repository at this point in the history
…a while) Fixes #570
  • Loading branch information
lots0logs committed Sep 22, 2016
1 parent 8df9804 commit f8c7f0c
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions scripts/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,28 @@ do_install() {
GTK320DIR="${INSTALL_DIR}/gtk-3.20"

install -dm755 "${INSTALL_DIR}"

cd src

cp index.theme "${INSTALL_DIR}"

for _DIR in "${GTKDIR}" "${GTK320DIR}"
do
GTKVER="${_DIR##*/}"

cd src
mkdir "${_DIR}"

This comment has been minimized.

Copy link
@khurshid-alam

khurshid-alam Sep 23, 2016

Contributor

@lots0logs mkdir -p would be better as it would allow anyone compile locally multiple times without getting error.

This comment has been minimized.

Copy link
@lots0logs

lots0logs Sep 23, 2016

Author Contributor

Indeed. Thanks 👍


mkdir -p "${_DIR}/dist"
cp --preserve=links -rt "${INSTALL_DIR}" \
assets gtk-2.0 metacity-1 openbox-3 xfce-notify-4.0 xfwm4 unity

cp -rt "${INSTALL_DIR}" \
gtk-2.0 metacity-1 openbox-3 xfce-notify-4.0 xfwm4 unity

cp -t "${_DIR}" \
cp --preserve=links -t "${_DIR}" \
"${GTKVER}/gtk.css" \
"${GTKVER}/gtk-dark.css" \
"${GTKVER}/gtk.gresource" \
"${GTKVER}/thumbnail.png"

cp -t "${_DIR}/dist" \
"${GTKVER}/dist/gtk.css" \
"${GTKVER}/dist/gtk-dark.css"

cd "${_DIR}"
ln -sr ../assets assets

This comment has been minimized.

Copy link
@khurshid-alam

khurshid-alam Sep 23, 2016

Contributor

@lots0logs Same here. ln -srf overwrites even if the link exists.

This comment has been minimized.

Copy link
@lots0logs

lots0logs Sep 23, 2016

Author Contributor

👍

cd -
done
}
Expand Down

0 comments on commit f8c7f0c

Please sign in to comment.