blob: a314eae2299b8335841dae8f2c46423104c3e076 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
Default to <prefix>/usr/bin install.
https://bugs.gentoo.org/635032
--- a/tools/niminst/install.nimf
+++ b/tools/niminst/install.nimf
@@ -28,13 +28,13 @@ if [ $# -eq 1 ] ; then
echo "sh deinstall.sh DIR"
exit 1
;;
- "/usr/bin")
- bindir=/usr/bin
- configdir=/etc/?proj
- libdir=/usr/lib/?proj
- docdir=/usr/share/?proj/doc
- datadir=/usr/share/?proj/data
- nimbleDir="/opt/nimble/pkgs/?c.nimblePkgName-?c.version"
+ *)
+ bindir=$1/usr/bin
+ configdir=$1/etc/?proj
+ libdir=$1/usr/lib/?proj
+ docdir=$1/usr/share/?proj/doc
+ datadir=$1/usr/share/?proj/data
+ nimbleDir=$1"/opt/nimble/pkgs/?c.nimblePkgName-?c.version"
;;
"/usr/local/bin")
bindir=/usr/local/bin
@@ -68,6 +68,9 @@ if [ $# -eq 1 ] ; then
;;
esac
+ mkdir -p $bindir
+ mkdir -p $datadir
+
mkdir -p $libdir
mkdir -p $docdir
mkdir -p $configdir
|