You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
691 B
21 lines
691 B
#!/bin/bash
|
|
pushd build
|
|
/usr/bin/php -c neato_php_cli_phar.ini -f compile-phar.php
|
|
|
|
/usr/bin/chmod +x install_neato.sh
|
|
|
|
TAR_FILE=neato_deploy.tar.gz
|
|
/usr/bin/tar -czvf $TAR_FILE install_neato.sh make-sums.sh neatoDeploy.phar neato_deploy_php_cli.ini neato_deploy.sh ../deploy_files/deploy_*.php
|
|
|
|
EXIT_COMMAND="./install_neato.sh"
|
|
|
|
SELF_EXTRACTABLE="$TAR_FILE.self"
|
|
|
|
/usr/bin/echo '#!/bin/bash' > $SELF_EXTRACTABLE
|
|
/usr/bin/echo 'dd bs=1 skip=`head -3 $0 | wc -c` if=$0 | gunzip -c | tar -x' >> $SELF_EXTRACTABLE
|
|
/usr/bin/echo "$EXIT_COMMAND; exit" >> $SELF_EXTRACTABLE
|
|
|
|
/usr/bin/cat $TAR_FILE >> $SELF_EXTRACTABLE
|
|
/usr/bin/chmod a+x $SELF_EXTRACTABLE
|
|
/usr/bin/mv $SELF_EXTRACTABLE ..
|
|
popd |