Skip to content

Commit

Permalink
Remove old (non-legacy) site as it's dead weight now.
Browse files Browse the repository at this point in the history
  • Loading branch information
nadako committed Dec 10, 2015
1 parent 8fefc60 commit e07d1db
Show file tree
Hide file tree
Showing 18 changed files with 9 additions and 821 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ www/.htaccess
www/dbconfig.json.example
www/haxelib.css
www/legacy/
www/tmpl/

# IDE files
.idea
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ mkdir www/files/3.0
# TODO: copy assets
# Compile the site
haxe site.hxml
haxe legacysite.hxml
haxe newsite.hxml
# TODO: check the permissions, writeable directories etc.
Expand All @@ -89,8 +89,8 @@ Build files:

* __haxelib.hxml__: Build the current haxelib tool from src/haxelib/Main
* __legacyhaxelib.hxml__: Build the haxelib tool that works with Haxe 2.x
* __legacysite.hxml__: Build the legacy website.
* __prepare.hxml__: Build a tool to prepare the server (I think)
* __site.hxml__: Build the old website, the legacy website, and the Haxe remoting API.
* __newsite.hxml__: Build the new website, the new site unit tests, and the Haxe remoting API. (Also runs the unit tests).
* __test.hxml__: Build the automated tests.

Expand Down
6 changes: 6 additions & 0 deletions legacysite.hxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
-cp src
-neko www/legacy/index.n
-main legacyhaxelib.Site
-lib hx2compat
-D haxelib_site
-dce no
22 changes: 0 additions & 22 deletions site.hxml

This file was deleted.

52 changes: 0 additions & 52 deletions site.hxproj

This file was deleted.

11 changes: 1 addition & 10 deletions site.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,12 @@ mkdir -p www/files/3.0

# Compile the old site first, to get the legacy API etc, and then the new site.

haxe site.hxml
haxe legacysite.hxml
haxe newsite.hxml

# Copy various assets

cp src/haxelib/.htaccess www/
cp -ar src/haxelib/tmpl www/
cp src/haxelib/haxelib.css www/
cp src/haxelib/dbconfig.json.example www/

cp src/legacyhaxelib/.htaccess www/legacy/
Expand All @@ -26,13 +24,6 @@ cp src/legacyhaxelib/haxelib.css www/legacy/

# If the databases don't exist, run "setup"

if [ ! -f www/haxelib.db ];
then
cd www
neko old.n setup
cd ..
fi

if [ ! -f www/legacy/haxelib.db ];
then
cd www/legacy
Expand Down
1 change: 0 additions & 1 deletion src/haxelib/Paths.hx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ class Paths {
static public var DB_FILE = CWD + "haxelib.db";

static public var TMP_DIR = CWD + "tmp";
static public var TMPL_DIR = CWD + "tmpl/";
static public var REP_DIR = CWD + Data.REPOSITORY;

}
Loading

0 comments on commit e07d1db

Please sign in to comment.