Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(336)

Side by Side Diff: remoting/host/installer/linux/build-deb.sh

Issue 10800099: Initial prototype of Me2Me Debian package (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | remoting/host/installer/linux/control » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/bin/bash -e
2
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
6
7 if [ "$(id -u)" != 0 ]; then
8 echo "This tool must be run as root (or use fakeroot)."
9 exit 1
10 fi
11
12 PACKAGE=chrome-remote-desktop
13 BUILD_DIR=./$PACKAGE
14 SRC_DIR=../../../..
15 BIN_DIR=$BUILD_DIR/usr/bin
16 DOC_DIR=$BUILD_DIR/usr/share/doc/$PACKAGE
17 CONTROL_DIR=$BUILD_DIR/DEBIAN
18
19 version_full=${version_full:-1.2.3.4}
20
21 rm -rf $BUILD_DIR
22 mkdir -p $BIN_DIR $DOC_DIR $CONTROL_DIR
23 chmod -R 755 $BIN_DIR $DOC_DIR $CONTROL_DIR
24
25 SCRIPTS="remoting/tools/gaia_auth.py \
26 remoting/tools/keygen.py \
27 remoting/tools/me2me_virtual_host.py"
28 BINARIES="out/Release/remoting_host_keygen \
29 out/Release/remoting_me2me_host"
30
31 for file in $SCRIPTS $BINARIES; do
32 cp "$SRC_DIR/$file" $BIN_DIR
33 filename=$(basename "$file")
34 if [ -x "$BIN_DIR/$filename" ]; then
35 chmod 755 "$BIN_DIR/$filename"
36 else
37 chmod 644 "$BIN_DIR/$filename"
38 fi
39 strip "$BIN_DIR/$filename" 2>/dev/null || true
40 done
41
42 cp copyright $DOC_DIR
43 chmod 644 $DOC_DIR/copyright
44
45 sed "s/@version_full@/$version_full/; s/#.*//" \
46 < "$SRC_DIR/remoting/host/installer/linux/control" \
47 > "$CONTROL_DIR/control"
48
49 #dpkg-shlibdeps -Tsubstvars $BINARIES
50
51 dpkg-deb --build $BUILD_DIR
OLDNEW
« no previous file with comments | « no previous file | remoting/host/installer/linux/control » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698