22
22
set -e
23
23
24
24
PKG_ROOT=` pwd` # The script must be executed from the root git directory
25
- repo_name=" Fledge " # Name of the Git repository
25
+ repo_name=" fledge " # Name of the Git repository
26
26
branch=" master" # Default Git branch to use
27
27
pkg_name=" fledge" # Name of the package to build
28
28
architecture=" x86_64" # The architecture for which the rpm should be created
@@ -83,7 +83,7 @@ while getopts ":hcasb:" opt; do
83
83
esac
84
84
done
85
85
86
- if [ ! -f packages/rpmbuild /SPECS/fledge.spec ] ; then
86
+ if [ ! -f packages/RPM /SPECS/fledge.spec ] ; then
87
87
echo You must run this script from the fledge-pkg directory
88
88
exit 1
89
89
fi
@@ -97,7 +97,7 @@ if [[ $skip_build == 0 ]]; then
97
97
echo WARNING: Repository ${repo_name} already exists, using the existing copy
98
98
(cd ${repo_name} ; git fetch --all; git pull ; git checkout " $branch " )
99
99
else
100
- git clone -b " $branch " https://github.com/fledge/${repo_name} .git
100
+ git clone -b " $branch " https://github.com/fledge-iot /${repo_name} .git
101
101
fi
102
102
103
103
GIT_ROOT=/tmp/" ${repo_name} "
@@ -167,7 +167,7 @@ if [[ ! -d "${FLEDGE_ROOT}" ]]; then
167
167
fi
168
168
169
169
version=` cat ${FLEDGE_ROOT} /VERSION | tr -d ' ' | grep ' fledge_version=' | head -1 | sed -e ' s/\(.*\)=\(.*\)/\2/g' `
170
- BUILD_ROOT=" ${PKG_ROOT} /packages/rpmbuild /BUILDROOT"
170
+ BUILD_ROOT=" ${PKG_ROOT} /packages/RPM/build /BUILDROOT"
171
171
172
172
mkdir -p ${PKG_ROOT} /packages/RPM/build/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS}
173
173
mkdir -p ${PKG_ROOT} /packages/RPM/build/RPMS/x86_64
0 commit comments