-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage
executable file
·46 lines (31 loc) · 1.48 KB
/
package
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
37
38
39
40
41
42
43
#!/bin/sh
echo "this script needs to be run as sudo"
SCRIPTABS=$(readlink -f $0)
SCRIPTPATH=`dirname $SCRIPTABS`
DEST="$SCRIPTPATH"
FROM="$SCRIPTPATH/../build"
echo "fixing depreciated tce directory location"
echo "/mnt/sda1/tce" > /opt/.tce_dir
chmod +x /opt/.tce_dir
echo "remember to update version number and change log date in the .info files"
mkdir -p nodejs-doc/usr/local/share/man/man1
cp -av $FROM/share/man/man1/* $DEST/nodejs-doc/usr/local/share/man/man1/
tcz-pack nodejs-doc
#cp -av $FROM/include/node/* $DEST/nodejs-dev/usr/local/include/node
#cp -av $FROM/lib/node/wafadmin/* $DEST/nodejs-dev/usr/local/lib/node/wafadmin
#tcz-pack nodejs-dev
mkdir -p nodejs/usr/local/bin/
cp -av $FROM/bin/node $DEST/nodejs/usr/local/bin/node
cp -av $FROM/bin/node-waf $DEST/nodejs/usr/local/bin/node-waf
mkdir -p nodejs/usr/local/bin/node_modules
cp -av $FROM/lib/node_modules/* $DEST/nodejs/usr/local/bin/node_modules/
cp -av $FROM/lib/node_modules/npm/bin/npm $DEST/nodejs/usr/local/bin/npm
#cp -P $FROM/bin/npm $DEST/nodejs/usr/local/bin/npm
#rm $DEST/nodejs/usr/local/bin/npm
#ln -s $DEST/nodejs/usr/local/bin/node_modules/npm/bin/npm $DEST/nodejs/usr/local/bin/npm
mkdir -p nodejs/usr/local/lib/node/wafadmin
cp -av $FROM/lib/node/wafadmin/* $DEST/nodejs/usr/local/lib/node/wafadmin
mkdir -p nodejs/usr/local/lib/dtrace
cp -av $FROM/lib/dtrace/* $DEST/nodejs/usr/local/lib/dtrace
#ln $DEST/nodejs/usr/local/lib/node_modules/npm/bin/npm-cli.js $DEST/nodejs/usr/local/bin/npm
tcz-pack nodejs