Skip to content

Commit

Permalink
fix: made the installation file work on freebsd
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlotte D committed Jun 20, 2018
1 parent 8083a96 commit f5553e8
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions scripts/utils.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

do_install() {
local GTKDIR GTK320DIR GTKVER INSTALL_DIR
Expand All @@ -12,23 +12,24 @@ do_install() {

cp index.theme "${INSTALL_DIR}"

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

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

mkdir -p "${_DIR}"

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

cd "${_DIR}"
ln -srf ../assets assets
ln -sf ../assets assets
cd -
done
}
Expand Down

0 comments on commit f5553e8

Please sign in to comment.