aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2010-09-10 10:25:38 -0300
committerHisham Muhammad <hisham@gobolinux.org>2010-09-10 10:25:38 -0300
commitd040eee8e5d93a64587b168ad0742df0f7d5f7c1 (patch)
tree2627ec6feb3ba428762f44b384292daa281aae80
parent6d83783e43061b6231f47dfb14eb6b5937555558 (diff)
downloadluarocks-d040eee8e5d93a64587b168ad0742df0f7d5f7c1.tar.gz
luarocks-d040eee8e5d93a64587b168ad0742df0f7d5f7c1.tar.bz2
luarocks-d040eee8e5d93a64587b168ad0742df0f7d5f7c1.zip
Cleanups for release
-rwxr-xr-xmakedist69
-rw-r--r--rockspec2
-rw-r--r--src/luarocks/cfg.lua2
3 files changed, 2 insertions, 71 deletions
diff --git a/makedist b/makedist
deleted file mode 100755
index 72b53caf..00000000
--- a/makedist
+++ /dev/null
@@ -1,69 +0,0 @@
1#!/bin/sh
2
3svnlist() {
4 if [ "$1" ]
5 then local prefix="$1/"
6 fi
7 svn list $1 | grep -v "^?" | while read line
8 do
9 local path="$prefix$line"
10 echo "$path"
11 if [ -d "$path" ]
12 then
13 svnlist "$path"
14 fi
15 done
16}
17
18if ! [ "$1" ]
19then
20 echo "usage: $0 <version>"
21 exit 1
22fi
23
24svn list > /dev/null 2> /dev/null
25if [ $? != 0 ]
26then
27 echo "Your version of svn may be too old."
28 exit 1
29fi
30
31make clean
32
33out="luarocks-$1"
34rm -rf "$out"
35mkdir "$out"
36list=`svnlist`
37echo $list
38rm -f missing_ref
39echo "$list" | while read i
40do
41 if [ -f "$i" ]
42 then
43 dir=`dirname $i`
44 mkdir -p "$out/$dir"
45 cp "$i" "$out/$dir"
46 if echo "$i" | grep -q "^src/"
47 then
48 grep -qw `basename "$i"` Makefile || {
49 echo "Missing ref in makefile: $i"
50 touch missing_ref
51 exit 1
52 }
53 fi
54 fi
55done
56if [ -e missing_ref ]
57then
58 rm -f missing_ref
59 exit 1
60fi
61rm -f "$out-win32.zip" "$out.tar.gz"
62rm "$out/makedist"
63rm "$out/install.bat"
64tar czvpf "$out.tar.gz" "$out"
65cp install.bat "$out"
66cp -a win32/bin "$out"
67cp -a win32/lua5.1 "$out"
68zip -r "$out-win32.zip" "$out"
69rm -rf "$out"
diff --git a/rockspec b/rockspec
index 2e916a67..5c054e2f 100644
--- a/rockspec
+++ b/rockspec
@@ -1,5 +1,5 @@
1package = "LuaRocks" 1package = "LuaRocks"
2local VER = "2.0.2" 2local VER = "2.0.3"
3local REV = "1" 3local REV = "1"
4version = VER.."-"..REV 4version = VER.."-"..REV
5 5
diff --git a/src/luarocks/cfg.lua b/src/luarocks/cfg.lua
index 45c73bf6..f76b247c 100644
--- a/src/luarocks/cfg.lua
+++ b/src/luarocks/cfg.lua
@@ -24,7 +24,7 @@ end
24 24
25_M.config = config 25_M.config = config
26 26
27program_version = "2.0.2" 27program_version = "2.0.3"
28user_agent = "LuaRocks/"..program_version 28user_agent = "LuaRocks/"..program_version
29 29
30local persist = require("luarocks.persist") 30local persist = require("luarocks.persist")