|
Revision 3925, 405 bytes
(checked in by diego_iastrubni, 2 years ago)
|
Hardcode "/usr/bin/php" and "/bin/sh", as this is the way most Linux distros do this. I know this conflicts ticket:695, but I just don't see any good
reason to make another process on every single command (/usr/bin/env and then php).
If a Linux system or *BSD people are having poblems, this can be deal on install time by patching the source, this will be the best for the running
systems (less process will be opend). This is only good for the final product. Sorry, but I am quite sure you already have a lot of patches for the
product anyway, one little more patch will not hurt.
The commands are:
!#/bin/sh
!#/usr/bin/php -q
|
- Property svn:mime-type set to
text/plain
- Property svn:eol-style set to
native
- Property svn:executable set to
*
|
| Line | |
|---|
| 1 |
#! /usr/sh |
|---|
| 2 |
|
|---|
| 3 |
# |
|---|
| 4 |
# a small script which exports this current directory and generates a |
|---|
| 5 |
# release tarball |
|---|
| 6 |
# |
|---|
| 7 |
# public domain, Diego Iastrubni |
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
set -e |
|---|
| 11 |
|
|---|
| 12 |
FREEPBX_VER=2.2.0-prealpha |
|---|
| 13 |
FILENAME=freepbx-$FREEPBX_VER.tar.gz |
|---|
| 14 |
TMPDIR=`mktemp -d -p /tmp/ freepbx-release-XXXXXX` |
|---|
| 15 |
|
|---|
| 16 |
svn export . $TMPDIR/freepbx-$FREEPBX_VER |
|---|
| 17 |
tar -czf $FILENAME -C $TMPDIR . |
|---|
| 18 |
rm -fr $TMPDIR |
|---|
| 19 |
|
|---|
| 20 |
echo Used $TMPDIR, compressed image is $FILENAME |
|---|