Skip to content

Commit c6d13a9

Browse files
committed
Merge branch 'release/1.4.0'
2 parents 44f8b43 + a7671a6 commit c6d13a9

File tree

152 files changed

+6648
-5271
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

152 files changed

+6648
-5271
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ npm-debug.log
1515
.ep_initialized
1616
*.crt
1717
*.key
18+
bin/etherpad-1.deb

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ node_js:
33
- "0.10"
44
install:
55
- "bin/installDeps.sh"
6-
- "export GIT_HASH=$(cat .git/HEAD | head -c 7)"
6+
- "export GIT_HASH=$(git rev-parse --verify --short HEAD)"
77
before_script:
88
- "tests/frontend/travis/sauce_tunnel.sh"
99
script:

CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,31 @@
1+
# 1.4
2+
* NEW: Disable toolbar items through settings.json
3+
* NEW: Internal stats/metrics engine
4+
* NEW: Copy/Move Pad API functions
5+
* NEW: getAttributeOnSelection method
6+
* NEW: CSS function when an attribute is active on caret location
7+
* NEW: Various new eejs blocks
8+
* NEW: Ace afterEditHook
9+
* NEW: Import hook to introduce alternative export methods
10+
* NEW: preProcessDomLine allows Domline attributes to be processed before native attributes
11+
* Fix: Allow for lighter author colors
12+
* Fix: Improved randomness of session tokens
13+
* Fix: Don't panic if an author2session/group2session no longer exists
14+
* Fix: Gracefully fallback to related languages if chosen language is unavailable
15+
* Fix: Various changeset/stability bugs
16+
* Fix: Re-enable import buttons after failed import
17+
* Fix: Allow browser tabs to be cycled when in editor
18+
* Fix: Better Protocol detection
19+
* Fix: padList API Fix
20+
* Fix: Caret walking issue
21+
* Fix: Better settings.json parsing
22+
* Fix: Improved import/export handling
23+
* Other: Various whitespace/code clean-up
24+
* Other: .deb packaging creator
25+
* Other: More API Documentation
26+
* Other: Lots more translations
27+
* Other: Support Node 0.11
28+
129
# 1.3
230
* NEW: We now follow the semantic versioning scheme!
331
* NEW: Option to disable IP logging

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Etherpad works with node v0.8 and v0.10, only. (We don't support v0.6)
2929
### Prebuilt windows package
3030
This package works out of the box on any windows machine, but it's not very useful for developing purposes...
3131

32-
1. [Download the latest windows package](http://etherpad.org/downloads/etherpad-lite-win-1.2.91-7492fb18a4.zip)
32+
1. [Download the latest windows package](http://etherpad.org/#download)
3333
2. Extract the folder
3434

3535
Now, run `start.bat` and open <http://localhost:9001> in your browser. You like it? [Next steps](#next-steps).

bin/buildDebian.sh

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#!/usr/bin/env bash
2+
3+
# IMPORTANT
4+
# Protect agaisnt mispelling a var and rm -rf /
5+
set -u
6+
set -e
7+
8+
SRC=/tmp/etherpad-deb-src
9+
DIST=/tmp/etherpad-deb-dist
10+
SYSROOT=${SRC}/sysroot
11+
DEBIAN=${SRC}/DEBIAN
12+
13+
rm -rf ${DIST}
14+
mkdir -p ${DIST}/
15+
16+
rm -rf ${SRC}
17+
rsync -a bin/deb-src/ ${SRC}/
18+
mkdir -p ${SYSROOT}/opt/
19+
20+
rsync --exclude '.git' -a . ${SYSROOT}/opt/etherpad/ --delete
21+
mkdir -p ${SYSROOT}/usr/share/doc
22+
cp README.md ${SYSROOT}/usr/share/doc/etherpad
23+
find ${SRC}/ -type d -exec chmod 0755 {} \;
24+
find ${SRC}/ -type f -exec chmod go-w {} \;
25+
chown -R root:root ${SRC}/
26+
27+
let SIZE=`du -s ${SYSROOT} | sed s'/\s\+.*//'`+8
28+
pushd ${SYSROOT}/
29+
tar czf ${DIST}/data.tar.gz [a-z]*
30+
popd
31+
sed s"/SIZE/${SIZE}/" -i ${DEBIAN}/control
32+
pushd ${DEBIAN}
33+
tar czf ${DIST}/control.tar.gz *
34+
popd
35+
36+
pushd ${DIST}/
37+
echo 2.0 > ./debian-binary
38+
39+
find ${DIST}/ -type d -exec chmod 0755 {} \;
40+
find ${DIST}/ -type f -exec chmod go-w {} \;
41+
chown -R root:root ${DIST}/
42+
ar r ${DIST}/etherpad-1.deb debian-binary control.tar.gz data.tar.gz
43+
popd
44+
rsync -a ${DIST}/etherpad-1.deb ./

bin/deb-src/DEBIAN/control

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Package: etherpad
2+
Version: 1.3
3+
Section: base
4+
Priority: optional
5+
Architecture: i386
6+
Installed-Size: SIZE
7+
Depends:
8+
Maintainer: John McLear <[email protected]>
9+
Description: Etherpad is a collaborative editor.

bin/deb-src/DEBIAN/postinst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
# Start the services!
3+
4+
service etherpad start
5+
echo "Give Etherpad about 3 minutes to install dependencies then visit http://localhost:9001 in your web browser"
6+
echo "To stop etherpad type 'service etherpad stop', To restart type 'service etherpad restart'".
7+
rm -f /tmp/etherpad.log /tmp/etherpad.err

bin/deb-src/DEBIAN/preinst

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/bin/bash
2+
3+
# Installs node if it isn't already installed
4+
#
5+
# Don't steamroll over a previously installed node version
6+
# TODO provide a local version of node?
7+
8+
VER="0.10.4"
9+
ARCH="x86"
10+
if [ `arch | grep 64` ]
11+
then
12+
ARCH="x64"
13+
fi
14+
15+
# TODO test version
16+
if [ ! -f /usr/local/bin/node ]
17+
then
18+
pushd /tmp
19+
wget -c "http://nodejs.org/dist/v${VER}/node-v${VER}-linux-${ARCH}.tar.gz"
20+
rm -rf /tmp/node-v${VER}-linux-${ARCH}
21+
tar xf node-v${VER}-linux-${ARCH}.tar.gz -C /tmp/
22+
cp -a /tmp/node-v${VER}-linux-${ARCH}/* /usr/local/
23+
fi
24+
25+
# Create Etherpad user
26+
adduser --system etherpad

bin/deb-src/DEBIAN/prerm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
# Stop the appserver:
4+
service etherpad stop || true
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
description "etherpad"
2+
3+
start on started networking
4+
stop on runlevel [!2345]
5+
6+
env EPHOME=/opt/etherpad
7+
env EPLOGS=/var/log/etherpad
8+
env EPUSER=etherpad
9+
10+
respawn
11+
12+
pre-start script
13+
cd $EPHOME
14+
mkdir $EPLOGS ||true
15+
chown $EPUSER $EPLOGS ||true
16+
chmod 0755 $EPLOGS ||true
17+
chown -R $EPUSER $EPHOME/var ||true
18+
$EPHOME/bin/installDeps.sh >> $EPLOGS/error.log || { stop; exit 1; }
19+
end script
20+
21+
script
22+
cd $EPHOME/
23+
exec su -s /bin/sh -c 'exec "$0" "$@"' $EPUSER -- node node_modules/ep_etherpad-lite/node/server.js \
24+
>> $EPLOGS/access.log \
25+
2>> $EPLOGS/error.log
26+
echo "Etherpad is running on http://localhost:9001 - To change settings edit /opt/etherpad/settings.json"
27+
28+
end script

0 commit comments

Comments
 (0)