File: Fritzing.sh

package info (click to toggle)
fritzing 0.9.3b+dfsg-9
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 38,868 kB
  • sloc: cpp: 102,277; ansic: 2,611; python: 2,523; xml: 1,981; sh: 261; makefile: 24
file content (16 lines) | stat: -rw-r--r-- 342 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
appname="Fritzing"
# dirname=`dirname "${0}"`

# new dirname procedure from Volker Kuhlmann
# use -f to make the readlink path absolute
dirname="$(dirname -- "$(readlink -f -- "${0}")" )"

if [ "$dirname" = "." ]; then
	dirname="$PWD/$dirname"
fi

LD_LIBRARY_PATH="${dirname}/lib"
export LD_LIBRARY_PATH

"$dirname/lib/$appname" $*