Browse Source

style: add newline at end of file

master
dnomd343 3 years ago
parent
commit
0af09b8b69
  1. 1
      .gitignore
  2. 8
      conf/docker/iconv.sh
  3. 3
      conf/docker/vlmcsd.sh

1
.gitignore

@ -0,0 +1 @@
/.idea/

8
conf/docker/iconv.sh

@ -3,16 +3,16 @@ mkdir -p /tmp
wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.16.tar.gz -O /tmp/libiconv.tar.gz
tar xf /tmp/libiconv.tar.gz -C /tmp
cd /tmp/libiconv-1.16/
cd /tmp/libiconv-1.16/ || exit
sed -i 's/_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");/#if HAVE_RAW_DECL_GETS\n_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");\n#endif/g' srclib/stdio.in.h
./configure --prefix=/usr/local
make && make install
php_version=`php -r "phpinfo();" | grep "PHP Version" | head -1`
php_version=$(php -r "phpinfo();" | grep "PHP Version" | head -1)
php_version=${php_version#*=> }
wget http://php.net/distributions/php-$php_version.tar.gz -O /tmp/php.tar.gz
wget http://php.net/distributions/php-"$php_version".tar.gz -O /tmp/php.tar.gz
tar xf /tmp/php.tar.gz -C /tmp
cd /tmp/php-$php_version/ext/iconv
cd /tmp/php-"$php_version"/ext/iconv || exit
phpize
./configure --with-iconv=/usr/local
make && make install

3
conf/docker/vlmcsd.sh

@ -1,7 +1,6 @@
apk add --no-cache git make build-base
git clone --branch master --single-branch https://github.com/Wind4/vlmcsd.git /tmp/vlmcsd-build
cd /tmp/vlmcsd-build
make
cd /tmp/vlmcsd-build || exit && make
mkdir /tmp/vlmcsd
cp /tmp/vlmcsd-build/bin/vlmcs /tmp/vlmcsd/
cp /tmp/vlmcsd-build/bin/vlmcsd /tmp/vlmcsd/

Loading…
Cancel
Save