correction bug sur le fichier build.sh
This commit is contained in:
11
build.sh
11
build.sh
@@ -8,9 +8,10 @@
|
||||
################################################################################
|
||||
|
||||
create_deb() {
|
||||
dirname=configurateurfront-$1
|
||||
dirname="configurateurfront-$1"
|
||||
/usr/bin/mkdir -p "$2/bdist_deb/$dirname"
|
||||
cd "$2/bdist_deb/$dirname"
|
||||
|
||||
debvers=`/usr/bin/cat /etc/debian_version`
|
||||
IFS='.'
|
||||
read -ra vers <<< "$debvers"
|
||||
@@ -20,9 +21,10 @@ create_deb() {
|
||||
11
|
||||
EOF
|
||||
fi
|
||||
/usr/bin/dh_make -t $2/misc/template -n -y -i -d
|
||||
/usr/bin/dh_make -t $2/misc/template -n -y -i -d -e "vincent.benoit@benserv.fr" -c mit
|
||||
cd "$2"
|
||||
/usr/local/bin/ng build --configuration "production" --output-path "bdist_deb/$dirname/app-configurateur"
|
||||
ngpath="$3"
|
||||
$ngpath build --configuration "production" --output-path "bdist_deb/$dirname/app-configurateur"
|
||||
cd "$2/bdist_deb/$dirname"
|
||||
/usr/bin/find $2/misc -type f -name "*.conf" -exec /usr/bin/cp -a {} . \;
|
||||
/usr/bin/dpkg-buildpackage -b -uc -us -rfakeroot
|
||||
@@ -41,4 +43,5 @@ vers=`/usr/bin/cat VERSION`
|
||||
echo "VERSION => $vers"
|
||||
rootpath=`pwd`
|
||||
echo "*** Create Debian Misc Package ***"
|
||||
create_deb "$vers" "$rootpath"
|
||||
ngpath=`whereis ng |awk -F ': ' '{print $2}'`
|
||||
create_deb "$vers" "$rootpath" "$ngpath"
|
||||
|
||||
Reference in New Issue
Block a user