@@ -24,41 +24,38 @@ echo -e "\nGenerating manifest"
24
24
bash -ex $GENERATE_MANIFEST_SCRIPT
25
25
cat $module_name /__manifest__.json
26
26
27
- echo -e " \n\nPrepares indy-node debian package version"
28
- sed -i -r " s~indy-node==([0-9\.]+[0-9])(\.)?([a-z]+)~indy-node==\1\~\3~" setup.py
29
-
30
27
if [ " $distro_packages " = " debian-packages" ]; then
28
+ echo -e " \n\nPrepares indy-node debian package version"
29
+ sed -i -r " s~indy-node==([0-9\.]+[0-9])(\.)?([a-z]+)~indy-node==\1\~\3~" setup.py
30
+
31
31
# Update the package names to match the names that are available on the os.
32
32
echo -e " \nAdapt the dependencies for the Canonical archive"
33
33
sed -i " s~timeout-decorator~python3-timeout-decorator~" setup.py
34
34
sed -i " s~distro~python3-distro~" setup.py
35
35
sed -i " s~importlib-metadata=~python3-importlib-metadata=~" setup.py
36
36
37
-
38
37
# Only used for the deb package builds, NOT for the PyPi package builds.
39
38
echo -e " \n\nPrepares indy-plenum debian package version"
40
39
sed -i -r " s~indy-plenum==([0-9\.]+[0-9])(\.)?([a-z]+)~indy-plenum==\1\~\3~" setup.py
41
-
40
+
41
+ echo " Preparing config files"
42
+ GENERAL_CONFIG_DIR=" \/etc\/indy"
43
+ REPO_GENERAL_CONFIG_DIR=" indy_node/general_config"
44
+ # Define user config directory
45
+ sed -i " s/^\(GENERAL_CONFIG_DIR\s*=\s*\).*\$ /\1\" $GENERAL_CONFIG_DIR \" /" indy_common/config.py
46
+ # Create user config
47
+ cp $REPO_GENERAL_CONFIG_DIR /general_config.py $REPO_GENERAL_CONFIG_DIR /indy_config.py
48
+ cat $REPO_GENERAL_CONFIG_DIR /ubuntu_platform_config.py >> $REPO_GENERAL_CONFIG_DIR /indy_config.py
49
+ rm -f $REPO_GENERAL_CONFIG_DIR /general_config.py
50
+ rm -f $REPO_GENERAL_CONFIG_DIR /ubuntu_platform_config.py
51
+ rm -f $REPO_GENERAL_CONFIG_DIR /windows_platform_config.py
42
52
elif [ " $distro_packages " = " python-packages" ]; then
43
53
echo -e " \nNo adaption of dependencies for python packages"
44
54
else
45
55
echo -e " \nNo distribution specified. Please, specify distribution as 'debian-packages' or 'python-packages'."
46
56
exit 1
47
57
fi
48
58
49
- echo " Preparing config files"
50
- GENERAL_CONFIG_DIR=" \/etc\/indy"
51
- REPO_GENERAL_CONFIG_DIR=" indy_node/general_config"
52
- # Define user config directory
53
- sed -i " s/^\(GENERAL_CONFIG_DIR\s*=\s*\).*\$ /\1\" $GENERAL_CONFIG_DIR \" /" indy_common/config.py
54
- # Create user config
55
- cp $REPO_GENERAL_CONFIG_DIR /general_config.py $REPO_GENERAL_CONFIG_DIR /indy_config.py
56
- cat $REPO_GENERAL_CONFIG_DIR /ubuntu_platform_config.py >> $REPO_GENERAL_CONFIG_DIR /indy_config.py
57
- rm -f $REPO_GENERAL_CONFIG_DIR /general_config.py
58
- rm -f $REPO_GENERAL_CONFIG_DIR /ubuntu_platform_config.py
59
- rm -f $REPO_GENERAL_CONFIG_DIR /windows_platform_config.py
60
-
61
59
popd
62
60
63
- echo -e " \nFinished preparing $repo for publishing\n"
64
-
61
+ echo -e " \nFinished preparing $repo for publishing\n"
0 commit comments