-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
104 changed files
with
5,001 additions
and
2,558 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
# README # | ||
|
||
### Зачем нужен этот репозиторий? ### | ||
### Проект является независимой кросс-платформенной реализацией виртуальной машины, исполняющей скрипты на языке 1С:Предприятие. | ||
|
||
* Данное приложение является исполняющей средой для скриптов на языке 1С:Предприятие. | ||
* Позволяет писать скрипты на языке 1С без наличия самой платформы. | ||
* Подробнее см. [WIKI проекта](/EvilBeaver/1script/wiki/Home/) | ||
При этом библиотеки системы 1С:Предприятие не используются и не требуется установка системы 1С:Предприятие на целевой машине. | ||
|
||
### Как установить и собрать? ### | ||
Иными словами, это возможность писать программы на языке 1С без использования платформы 1С:Предприятие. | ||
|
||
* Установите Visual Studio 2010-2013 | ||
* Откройте файл 1Script.sln | ||
* Выполните сборку проекта | ||
## Название и произношение | ||
|
||
### Как поучаствовать в проекте? ### | ||
Проект носит название OneScript, может быть сокращен при написании до названия 1Script. | ||
|
||
* Клонируйте репозиторий | ||
* Меняйте что хотите | ||
* Присылайте pull-request | ||
OneScript позволяет создавать и выполнять текстовые сценарии, написанные на языке, знакомом любому специалисту по системе 1С:Предприятие. Применение знакомого языка для скриптовой автоматизации позволяет значительно повысить продуктивность специалиста за счет более простой автоматизации ручных операций. | ||
|
||
### С кем я говорю? ### | ||
## Сайт проекта | ||
|
||
* http://habrahabr.ru/users/evilbeaver/ | ||
Основная информация о проекте, релизы и техдокументация расположены на официальном сайте | ||
|
||
http://oscript.io | ||
|
||
## Библиотека полезных скриптов | ||
|
||
В поставку OneScript уже входит набор наиболее часто используемых пакетов. Эти пакеты разрабатываются в едином репозитарии на github и доступны для всем желающим. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Usage: | ||
# ./build.sh to build | ||
# ./build.sh /t:Clean to cleanup | ||
# ./build.sh /p:Platform="x86" to build for x86 | ||
|
||
cd `dirname $0` | ||
xbuild /p:Platform="Any CPU" /p:Configuration="Release" $@ ../src/1Script_Mono.sln | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
FROM ubuntu:latest | ||
|
||
|
||
MAINTAINER [email protected] | ||
|
||
# чтобы запустить тесты | ||
RUN locale-gen --lang ru_RU.UTF-8 | ||
ENV LANG ru_RU.UTF-8 | ||
|
||
# Add mono repository | ||
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF && \ | ||
echo "deb http://download.mono-project.com/repo/debian wheezy main" > /etc/apt/sources.list.d/mono-xamarin.list | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
# runtime dependencies | ||
mono-runtime \ | ||
libmono-system-core4.0-cil \ | ||
libmono-system4.0-cil \ | ||
libmono-corlib4.0-cil \ | ||
libmono-i18n4.0-all \ | ||
# deb-package tools | ||
dpkg\ | ||
debconf\ | ||
debhelper\ | ||
lintian\ | ||
md5deep\ | ||
fakeroot | ||
|
||
ADD ./build.sh /root/ | ||
ENTRYPOINT /root/build.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/bin/sh | ||
|
||
SRCPATH=/media | ||
BINPATH=${SRCPATH}/bin/ | ||
DEBBUILDROOT=${SRCPATH}/bin/ | ||
BUILDERROOT=${SRCPATH}/deb/ | ||
|
||
VERSION=$(cat ${BINPATH}VERSION) | ||
PAKNAME=onescript-engine | ||
DSTPATH=${DEBBUILDROOT}${PAKNAME} | ||
|
||
mkdir $DSTPATH | ||
mkdir -p $DSTPATH/DEBIAN | ||
mkdir -p $DSTPATH/usr/bin | ||
mkdir -p $DSTPATH/usr/share/oscript/lib | ||
mkdir -p $DSTPATH/usr/share/oscript/bin | ||
mkdir -p $DSTPATH/etc | ||
|
||
cp ${BUILDERROOT}settings/dirs $DSTPATH/DEBIAN/ | ||
cat ${BUILDERROOT}settings/control | sed -r "s/VERSION/$VERSION/g" > $DSTPATH/DEBIAN/control | ||
cp ${BINPATH}*.exe $DSTPATH/usr/share/oscript/bin | ||
cp ${BINPATH}*.dll $DSTPATH/usr/share/oscript/bin | ||
cp ${BUILDERROOT}oscript $DSTPATH/usr/bin | ||
cp ${BUILDERROOT}oscript-cgi $DSTPATH/usr/bin | ||
cp ${BUILDERROOT}oscript-opm $DSTPATH/usr/bin | ||
cp -r ${SRCPATH}/lib/* $DSTPATH/usr/share/oscript/lib | ||
cp ${BINPATH}/oscript.cfg $DSTPATH/etc | ||
|
||
ln -s /usr/bin/oscript-opm $DSTPATH/usr/bin/opm | ||
|
||
# TODO: Убрать это! | ||
cp ${BINPATH}/oscript.cfg $DSTPATH/usr/share/oscript/bin | ||
|
||
fakeroot dpkg-deb --build $DSTPATH | ||
|
||
rm -rf $DSTPATH | ||
chmod 777 $DSTPATH.deb | ||
dpkg-name -o $DSTPATH.deb | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
mono /usr/share/oscript/bin/oscript.exe $@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/sh | ||
|
||
if [ -z "$SCRIPT_FILENAME" ]; then | ||
export SCRIPT_FILENAME=$1 | ||
fi | ||
|
||
mono /usr/share/oscript/bin/oscript.exe -cgi $@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
OSPATH=/usr/share/oscript | ||
mono $OSPATH/bin/oscript.exe $OSPATH/lib/opm/src/opm.os $@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Package: onescript-engine | ||
Version: VERSION | ||
Provides: onescript | ||
Maintainer: Sergey Batanov <[email protected]> | ||
Architecture: all | ||
Section: interpreters | ||
Description: 1Script execution engine. | ||
Cross-platform scripting engine | ||
for DevOps who use 1C:Enterprise Platform (http://1c-dn.com/1c_enterprise) | ||
Depends: mono-runtime, libmono-system-core4.0-cil, libmono-system4.0-cil, | ||
libmono-corlib4.0-cil, libmono-i18n4.0-all | ||
Recommends: mono-complete | ||
Origin: https://bitbucket.org/EvilBeaver/1script/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/usr/bin | ||
/etc | ||
/usr/share/oscript/bin | ||
/usr/share/oscript/lib | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
README.md | ||
LICENSE | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# WiX wili be here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
FROM fedora | ||
MAINTAINER Chmouel Boudjnah <[email protected]> | ||
|
||
|
||
# Install various packages to get compile environment | ||
RUN dnf update -y && dnf -y group install 'Development Tools' | ||
|
||
# Install git command to access GitHub repository | ||
RUN dnf -y install sudo git rpmdevtools rpm-build yum-utils dnf-plugins-core dnf-plugins-extras | ||
|
||
RUN sed -i.bak -n -e '/^Defaults.*requiretty/ { s/^/# /;};/^%wheel.*ALL$/ { s/^/# / ;} ;/^#.*wheel.*NOPASSWD/ { s/^#[ ]*//;};p' /etc/sudoers | ||
|
||
# This is an optimisation for caching, since using the auto generated one will | ||
# make docker always run the builddep steps since new file | ||
ADD oscript.spec /tmp/ | ||
RUN dnf builddep -y --spec /tmp/oscript.spec | ||
|
||
ADD start.sh /start.sh | ||
|
||
RUN useradd -s /bin/bash -G adm,wheel,systemd-journal -m rpm | ||
|
||
WORKDIR /home/rpm | ||
CMD /start.sh | ||
VOLUME /media | ||
ENV VERSION "" | ||
ENV RELEASE "" | ||
|
||
|
||
#ADD .build/rpm/ /home/rpm/rpmbuild/ | ||
RUN chown -R rpm: /home/rpm | ||
|
||
USER rpm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
%global debug_package %{nil} | ||
%define _version 1.0.13 | ||
|
||
Name: onescript-engine | ||
Version: %{_version} | ||
Release: 1%{?dist} | ||
Summary: 1Script execution engine. | ||
|
||
License: MPL 2.0 | ||
URL: https://github.com/EvilBeaver/OneScript | ||
Source0: OneScript-%{version}.tar.gz | ||
BuildArch: noarch | ||
BuildRequires: wget | ||
Requires: mono-core | ||
|
||
%define _empty_manifest_terminate_build 0 | ||
%define _subdir OneScript-%{version} | ||
|
||
%description | ||
1Script execution engine. | ||
Cross-platform scripting engine | ||
for DevOps who use 1C:Enterprise Platform (http://1c-dn.com/1c_enterprise) | ||
|
||
%prep | ||
pwd | ||
%setup -c %{source0} | ||
|
||
%build | ||
echo "build" | ||
pwd | ||
|
||
%install | ||
%{__rm} -rf %{buildroot} | ||
pushd %{_subdir} | ||
mkdir -p %{buildroot}%{_datadir}/oscript/ | ||
mkdir -p %{buildroot}%{_bindir} | ||
mkdir -p %{buildroot}%{_sysconfdir} | ||
install -p oscript -m 755 %{buildroot}%{_bindir}/oscript | ||
rm oscript | ||
%{__cp} -fpr ./ %{buildroot}%{_datadir}/oscript/ | ||
popd | ||
|
||
%files | ||
%defattr(-,root,root) | ||
%{_bindir}/* | ||
%{_datadir}/oscript/* | ||
%doc | ||
|
||
|
||
|
||
%changelog | ||
* Sat Apr 23 2016 [email protected] | ||
- |
Oops, something went wrong.