File tree 3 files changed +21
-3
lines changed
3 files changed +21
-3
lines changed Original file line number Diff line number Diff line change
1
+ @ echo off
2
+
3
+ @ echo copy current version in bootstrap https://github.com/xUnitFor1C/xdd-bootstrap-1C
4
+
5
+ xcopy .\ibService .\..\..\.git\hooks\ibService\ /Y /E /F
6
+ xcopy .\pre-commit .\..\..\.git\hooks\ /Y /F
7
+ xcopy .\v8Reader.epf .\..\..\.git\hooks\ /Y /F
8
+ xcopy .\pyv8unpack.py .\..\..\.git\hooks\ /Y /F
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
- echo " dddd"
2
+
3
+ echo " Start hooks before commit for v8unpack erf and epf"
3
4
python.exe .git/hooks/pyv8unpack.py
Original file line number Diff line number Diff line change @@ -25,7 +25,16 @@ def get_path_to_1c():
25
25
26
26
cmd = os .getenv ("PATH1C" )
27
27
if not cmd is None :
28
- return os .getenv ("PATH1C" )
28
+ cmd = os .path .join (cmd , "1cv8" )
29
+ maxversion = max (list (filter ((lambda x : '8.' in x ), os .listdir (cmd ))))
30
+ if maxversion is None :
31
+ raise Exception ("not found verion dirs" )
32
+ cmd = os .path .join (cmd , maxversion + os .path .sep + "bin" + os .path .sep + "1cv8.exe" )
33
+
34
+ if not os .path .isfile (cmd ):
35
+ raise Exception ("file not found %s" % (cmd ))
36
+
37
+ return cmd
29
38
30
39
#read config
31
40
curdir = os .curdir
@@ -120,7 +129,7 @@ def decompile():
120
129
if len (dataprocessor_files ) == 0 :
121
130
exit (exit_code )
122
131
123
- dirsource = os .path .abspath (os .path .join (os .path .curdir , "src " ))
132
+ dirsource = os .path .abspath (os .path .join (os .path .curdir , "plugins-source " ))
124
133
curabsdirpath = os .path .abspath (os .path .curdir )
125
134
#pathbin1c = "C:\\Program Files\\1cv82\8.2.17.153\\bin\\1cv8.exe"
126
135
#pathbin1c = "c:\\Program Files (x86)\\1cv8\\8.3.4.304\\bin\\1cv8.exe"
You can’t perform that action at this time.
0 commit comments