-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path0-vars
executable file
·73 lines (62 loc) · 2.24 KB
/
0-vars
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/bin/sh
#Testing CloudStation
#LINKSTATION=1 means the build is for the LinkStation
#LINKSTATION=0 means the build is for the CloudStation
LINKSTATION=1
if [ $LINKSTATION -eq 1 ]; then
VERSION=171
VERSIONDOT="1.71"
else
VERSION=113
VERSIONDOT="1.13"
SUBVERSION=2.35
fi
#PLEXBIN=PlexMediaServer-0.9.9.14.531-7eef8c6-arm.spk
#PLEXBIN=PlexMediaServer-0.9.10.1.585-f31034e-arm.spk
#PLEXBIN=PlexMediaServer-0.9.11.1.678-c48ffd2-arm.spk
#PLEXBIN=PlexMediaServer-0.9.11.4.739-a4e710f-arm.spk
#PLEXBIN=PlexMediaServer-0.9.11.7.803-87d0708-arm.spk
#PLEXBIN=PlexMediaServer-0.9.12.11.1406-8403350-arm.spk
PLEXBIN=PlexMediaServer-0.9.12.19.1537-f38ac80-arm.spk
PLEX_GCC=gcc-4.7-base_4.7.2-5_armel.deb
PLEX_LIBC=libc6_2.13-38+deb7u6_armel.deb
PLEX_LBIN=libc-bin_2.13-38+deb7u6_armel.deb
PLEX_LIBGCC=libgcc1_4.7.2-5_armel.deb
SRC=./src
FIRMWARES=./firmwares
RESOURCES=./resources
#This worked fine under CentOS 7 but Debian uses dash instead of bash and the shell interpreter which seems to have issues with it.
#VERSIONDOT="${VERSION:0:1}.${VERSION:1}"
#This works under Debian but it was not tested under CentOS.
#VERSIONDOT="`echo $VERSION | head -c 1`.`echo $VERSION | tail -c 3`"
if [ $LINKSTATION -eq 1 ]; then
FIRMWARESHELL="$RESOURCES/ls_series-$VERSION"
FIRMWAREZIP="$FIRMWARES/ls_series-$VERSION.zip"
HDDROOTFSPATH="$FIRMWARESHELL/LinkStation_FW$VERSIONDOT"
else
FIRMWARESHELL="$RESOURCES/cloudstor-firmware-build-$VERSIONDOT-$SUBVERSION"
FIRMWAREZIP="$FIRMWARES/cloudstor-firmware-build-$VERSIONDOT-$SUBVERSION.zip"
HDDROOTFSPATH="$FIRMWARESHELL"
fi
FIRMWARESBACKOUT=".."
FIRMWARESHELLBACKOUT="../.."
TMPFOLDER=./tmp-compile
TMPFOLDERBACKOUT=".."
WEBUI=$FIRMWARES/utorrent-webui.2013052820184444.zip
MINIUI=$FIRMWARES/utorrent-miniui.2011042418543088.zip
TRANSMISSIONSTABLE_VERSION=2.77
TRANSMISSIONLATEST_VERSION=2.84
TRANSMISSIONCOMPILED=1
OLDWIN=nasnavi-266.exe
OLDOSX=nasnavi-266.dmg.zip
NASNAVIWIN=$FIRMWARES/nasnavi-282.zip
NASNAVIOSX=$FIRMWARES/nasnavi-282.dmg.zip
#FLEXGETVERSION=1.2.271
FLEXGETVERSION=1.2.349
#This is only usable on my own machine - GaryT
#FINALOUTPUTFULL=/media/sf_LinuxShare
#FINALOUTPUTAUTO=/media/sf_LinuxShare/buffaloplex
FINALOUTPUTFULL=./compiled
FINALOUTPUTAUTO=./compiled/autoupdate
rm -rf $TMPFOLDER 2> /dev/null
mkdir $TMPFOLDER