File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,17 +52,19 @@ dockerbuild(){
5252 if [ -n " $BUILDERNAME " ]; then
5353 docker run -it -e DEB_BUILD_OPTIONS=$DEB_OPT -e PKGDIR=$SH_PATH /packages/$PKGNAME /$PKGNAME -v $SH_PATH /:$SH_PATH --name $PKGNAME --rm $BUILDERNAME || errlog " builderror"
5454 else
55- docker run -it -e DEB_BUILD_OPTIONS=$DEB_OPT -e PKGDIR=$SH_PATH /packages/$PKGNAME /$PKGNAME -v $SH_PATH /:$SH_PATH --name $PKGNAME --rm pvebuilder || errlog " builderror"
55+ docker run -it -e DEB_BUILD_OPTIONS=$DEB_OPT -e PKGDIR=$SH_PATH /packages/$PKGNAME /$PKGNAME -v $SH_PATH /:$SH_PATH --name $PKGNAME --rm pvebuilder|| errlog " builderror"
5656 fi
5757}
5858
5959upload_pkg (){
60+ rm $PKG_LOCATION_PATH /$PKGNAME -rf
6061 mkdir $PKG_LOCATION_PATH /$PKGNAME -p
6162 find " $SH_PATH /packages/$PKGNAME /$PKGNAME " -name " *.deb" -exec cp {} $PKG_LOCATION_PATH /$PKGNAME \;
6263 find " $SH_PATH /packages/$PKGNAME /$PKGNAME " -name " *.buildinfo" -exec cp {} $PKG_LOCATION_PATH /$PKGNAME \;
6364 find " $SH_PATH /packages/$PKGNAME /$PKGNAME " -name " *.changes" -exec cp {} $PKG_LOCATION_PATH /$PKGNAME \;
6465 find " $SH_PATH /packages/$PKGNAME /$PKGNAME " -name " *.dsc" -exec cp {} $PKG_LOCATION_PATH /$PKGNAME \;
6566 find " $SH_PATH /packages/$PKGNAME /$PKGNAME " -name " *.tar*" -exec cp {} $PKG_LOCATION_PATH /$PKGNAME \;
67+ ls $PKG_LOCATION_PATH /$PKGNAME /
6668 for i in ` ls $PKG_LOCATION_PATH /$PKGNAME /* .deb` ;
6769 do
6870 md5sum $i > $i .md5
Original file line number Diff line number Diff line change @@ -15,21 +15,21 @@ exec_build(){
1515 echo " install depends"
1616 apt update
1717 yes | mk-build-deps --install --remove
18+ mkdir /tmp/$PKGDIR -p
1819 if [ -f " Makefile" ]; then
1920 echo " clean "
2021 make clean || echo ok
2122 echo " build deb in ` pwd` "
2223 if [ $dscflag == " dsc" ]; then
2324 make dsc || errlog " build dsc error"
24- cp ../ * .deb ../ * .buildinfo ../ * .changes ../ * . dsc ../ * .tar.* $PKGDIR
25+ cp * . dsc * .tar.* /tmp/ $PKGDIR
2526 fi
26- cp ../* .deb ../* .buildinfo ../* .changes ../* .dsc ../* .tar.* $PKGDIR
2727 make deb || errlog " build deb error"
28- # We need copy deb files first beacuse of deb will be clean when dsc build
29- cp ../ * .deb ../ * .buildinfo ../ * .changes ../ * .dsc ../ * .tar. * $PKGDIR
28+ # We need copy deb files first beacuse of deb will be clean when dsc build
29+ cp -r /tmp/ $PKGDIR / * ./
3030 else
3131 dpkg-buildpackage -b -us -uc || errlog " build deb error"
32- cp ../* .deb ../* .buildinfo ../* .changes ../* .dsc ../* .tar.* $PKGDIR
32+ mv ../* .deb ../* .buildinfo ../* .changes ../* .dsc ../* .tar.* $PKGDIR
3333 fi
3434}
3535
@@ -42,16 +42,7 @@ if [ -f "$PKGDIR/../autobuild.sh" ];then
4242 cd $PKGDIR /../
4343 bash autobuild.sh
4444else
45- # Rust not need copy
46- if [ ! -f " Cargo.toml" ]; then
47- cd $PKGDIR
48- exec_build
49- else
50- mkdir /build/
51- rsync -ra $PKGDIR /build
52- cd /build/data
53- exec_build
54- fi
55-
45+ cd $PKGDIR
46+ exec_build
5647
5748fi
You can’t perform that action at this time.
0 commit comments