Skip to content

Commit f49180d

Browse files
committed
fix up dist scripts to include the release number
1 parent e6d6c93 commit f49180d

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

build/linux/dist.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ cp ../../app/lib/ecj.jar processing/lib/
3434
cp ../../app/lib/jna.jar processing/lib/
3535
cp ../shared/revisions.txt processing/
3636

37+
if [ $1 ]
38+
then
39+
# write the release version number into the output directory
40+
echo $1 > processing/lib/version.txt
41+
fi
42+
3743
echo Extracting examples...
3844
unzip -q -d processing/ ../shared/examples.zip
3945

build/windows/dist.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/bin/sh
22

3-
#REVISION=`head -c 4 ../../todo.txt`
43
REVISION=`head -1 ../../todo.txt | awk '{print $1}'`
54

65
if [ $1 ]
@@ -32,6 +31,12 @@ cp -r ../shared/lib processing/
3231
cp -r ../shared/libraries processing/
3332
cp -r ../shared/tools processing/
3433

34+
if [ $1 ]
35+
then
36+
# write the release version number into the output directory
37+
echo $1 > processing/lib/version.txt
38+
fi
39+
3540
cp ../../app/lib/antlr.jar processing/lib/
3641
cp ../../app/lib/ecj.jar processing/lib/
3742
cp ../../app/lib/jna.jar processing/lib/

0 commit comments

Comments
 (0)