From: <dan...@us...> - 2009-05-07 13:52:55
|
Revision: 1267 http://cegcc.svn.sourceforge.net/cegcc/?rev=1267&view=rev Author: dannybackx Date: 2009-05-07 13:44:45 +0000 (Thu, 07 May 2009) Log Message: ----------- Updating the release scripts, over a year old by now. Unfinished. Include mingw32ce on i386 build. To do : separate gdb binary packages (gdb is not in our SVN any more). Modified Paths: -------------- trunk/cegcc/scripts/linux/cegcc.spec.in trunk/cegcc/scripts/linux/mingw32ce.spec.in trunk/cegcc/scripts/make_release.sh Added Paths: ----------- trunk/cegcc/scripts/linux/mingw32ce-i386.spec.in Modified: trunk/cegcc/scripts/linux/cegcc.spec.in =================================================================== --- trunk/cegcc/scripts/linux/cegcc.spec.in 2009-05-07 10:33:44 UTC (rev 1266) +++ trunk/cegcc/scripts/linux/cegcc.spec.in 2009-05-07 13:44:45 UTC (rev 1267) @@ -22,8 +22,10 @@ rm -rf $RPM_BUILD_ROOT export PREFIX=/opt/cegcc cd src || exit 1 +mkdir build-cegcc || exit 1 +cd build-cegcc || exit 1 # sh build-cegcc.sh . $RPM_BUILD_ROOT $PREFIX all || exit 1 -sh build-cegcc.sh all || exit 1 +sh ../scripts/build-cegcc.sh --components=all || exit 1 %install cd / Added: trunk/cegcc/scripts/linux/mingw32ce-i386.spec.in =================================================================== --- trunk/cegcc/scripts/linux/mingw32ce-i386.spec.in (rev 0) +++ trunk/cegcc/scripts/linux/mingw32ce-i386.spec.in 2009-05-07 13:44:45 UTC (rev 1267) @@ -0,0 +1,80 @@ +Summary: CeGCC offers cross-development to create Windows CE apps for ARM and x86 processors +Name: cegcc-mingw32ce-i386 +%define version VerSION +Version: VerSION +Release: 1 +License: open +Packager: Danny Backx <dan...@us...> +Group: Development/Tools +Prefix: /opt/x86mingw32ce +# Source: http://sourceforge.net/project/showfiles.php?group_id=173455 +Source: /tmp/cegcc-mingw32ce-i386-src-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-buildroot + +%description +CeGCC + +%prep +%setup -q +# %setup -n cegcc-minge32ce-VerSION + +%build +rm -rf $RPM_BUILD_ROOT +export PREFIX=/opt/x86mingw32ce +cd src || exit 1 +mkdir build-mingw32ce-i386 || exit 1 +cd build-mingw32ce-i386 || exit 1 +# sh build-cegcc.sh . $RPM_BUILD_ROOT $PREFIX all || exit 1 +sh ../scripts/build-x86.sh --components=all || exit 1 + +%install +cd / +rm -rf $RPM_BUILD_ROOT +mkdir $RPM_BUILD_ROOT +tar cf - opt/x86mingw32ce | (cd $RPM_BUILD_ROOT; tar xf -) + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +/opt/x86mingw32ce +#/opt/cegcc/arm-wince-cegcc +#%attr(755, root, root) /opt/cegcc/bin +#/opt/cegcc/include +#/opt/cegcc/lib +#/opt/cegcc/libexec +#/opt/cegcc/share +#/opt/cegcc/COPYING +#/opt/cegcc/COPYING.LIB +#/opt/cegcc/NEWS +#/opt/cegcc/README + +%changelog +* Sat Jan 20 2007 Danny Backx <dan...@us...> +- Copy cegcc.spec into mingw32ce.spec, change the stuff that's required. + +* Sat Dec 31 2006 Danny Backx <dan...@us...> +- Strip out mingw32ce. + +* Sat Dec 30 2006 Danny Backx <dan...@us...> +- Adapt to Pedro's build scripts and /opt/cegcc and /opt/mingw32ce . + +* Wed Nov 1 2006 Danny Backx <dan...@us...> +- Add COPYING.LIB +- Increase level to produce a 0.11 version next time. + +* Wed Oct 11 2006 Danny Backx <dan...@us...> +- Add a couple of text files. + +* Sat Oct 7 2006 Danny Backx <dan...@us...> +- Change to implement arm-wince-cegcc and arm-wince-mingw32ce targets. + +* Sun Sep 17 2006 Danny Backx <dan...@us...> +- Add documentation files. + +* Thu Sep 14 2006 Danny Backx <dan...@us...> +- Fix the path in install so we don't need to have cegcc installed to be + able to run rpmbuild. + +* Sun Sep 3 2006 Danny Backx <dan...@us...> +- initial version of the spec file. Property changes on: trunk/cegcc/scripts/linux/mingw32ce-i386.spec.in ___________________________________________________________________ Added: svn:eol-style + native Modified: trunk/cegcc/scripts/linux/mingw32ce.spec.in =================================================================== --- trunk/cegcc/scripts/linux/mingw32ce.spec.in 2009-05-07 10:33:44 UTC (rev 1266) +++ trunk/cegcc/scripts/linux/mingw32ce.spec.in 2009-05-07 13:44:45 UTC (rev 1267) @@ -22,8 +22,10 @@ rm -rf $RPM_BUILD_ROOT export PREFIX=/opt/mingw32ce cd src || exit 1 +mkdir build-mingw32ce-arm || exit 1 +cd build-mingw32ce-arm || exit 1 # sh build-cegcc.sh . $RPM_BUILD_ROOT $PREFIX all || exit 1 -sh build-mingw32ce.sh all || exit 1 +sh ../scripts/build-mingw32ce.sh --components=all || exit 1 %install cd / Modified: trunk/cegcc/scripts/make_release.sh =================================================================== --- trunk/cegcc/scripts/make_release.sh 2009-05-07 10:33:44 UTC (rev 1266) +++ trunk/cegcc/scripts/make_release.sh 2009-05-07 13:44:45 UTC (rev 1267) @@ -275,6 +275,7 @@ rm -f cegcc.spec mingw32ce.spec rpm-create-source.sh && \ sed -e "s/VerSION/$VERSION/g" <cegcc.spec.in >cegcc.spec && \ sed -e "s/VerSION/$VERSION/g" <mingw32ce.spec.in >mingw32ce.spec && \ + sed -e "s/VerSION/$VERSION/g" <mingw32ce-i386.spec.in >mingw32ce-i386.spec && \ sed -e "s/VerSION/$VERSION/g" <rpm-create-source.sh.in >rpm-create-source.sh && \ OK=yes if [ $OK = "no" ]; then @@ -321,22 +322,23 @@ # if test $RESTARTED -ge 51 then - echo "Skip level 50 (Prepare for buiding RPMs)" + echo "Skip level 50 (Prepare for building RPMs)" else - echo "Level 50 (Prepare for buiding RPMs)" + echo "Level 50 (Prepare for building RPMs)" OK=no cd $ORIGDIR cd $TAGSDIR/cegcc-$VERSION/scripts/linux sh rpm-create-source.sh && OK=yes if [ $OK = "no" ]; then - echo "Checkout from SVN failed, exiting ..." + echo "Prepare RPM source tar.gz file failed, exiting ..." exit 1 fi RESTARTED=51 report_status # fi - +echo Stop +exit 0 # # Level 51 # @@ -352,6 +354,11 @@ echo "Build of CeGCC RPM failed, exiting ..." exit 1 fi + if [ ! -r /usr/src/rpm/RPMS/cegcc-cegcc-$VERSION-1.i586.rpm ]; then + echo "RPM doesn't appear to be there, exiting ..." + echo "ls -l /usr/src/rpm/RPMS/i586/cegcc-cegcc-$VERSION-1.i586.rpm" + exit 1 + fi # # End level 51 (Build CeGCC RPM) # @@ -359,7 +366,6 @@ report_status # fi - # # Level 52 # @@ -371,14 +377,93 @@ OK=no rm -rf /opt/mingw32ce/* && rpmbuild -tb /usr/src/rpm/SOURCES/cegcc-mingw32ce-src-$VERSION.tar.gz && OK=yes + if [ $OK = "no" ]; then + echo "Build of Mingw32ce RPM failed, exiting ..." + exit 1 + fi + if [ ! -r /usr/src/rpm/RPMS/cegcc-mingw32ce-$VERSION-1.i586.rpm ]; then + echo "RPM doesn't appear to be there, exiting ..." + echo "ls -l /usr/src/rpm/RPMS/i586/cegcc-mingw32ce-$VERSION-1.i586.rpm" + exit 1 + fi # # End level 52 (Build Mingw32ce RPM) # + RESTARTED=53 + report_status + # +fi +# +# Level 53 +# +if test $RESTARTED -ge 54 +then + echo "Skip level 53 (Build Mingw32ce/i386 RPM)" +else + echo "Level 53 (Build Mingw32ce/i386 RPM)" + OK=no + rm -rf /opt/x86mingw32ce/* && + rpmbuild -tb /usr/src/rpm/SOURCES/cegcc-mingw32ce-i386-src-$VERSION.tar.gz && OK=yes + if [ $OK = "no" ]; then + echo "Build of Mingw32ce/i386 RPM failed, exiting ..." + exit 1 + fi + if [ ! -r /usr/src/rpm/RPMS/cegcc-mingw32ce-i386-$VERSION-1.i586.rpm ]; then + echo "RPM doesn't appear to be there, exiting ..." + echo "ls -l /usr/src/rpm/RPMS/i586/cegcc-mingw32ce-i386-$VERSION-1.i586.rpm" + exit 1 + fi + # + # End level 53 (Build Mingw32ce/i386 RPM) + # + RESTARTED=57 + report_status + # +fi +# +# Level 57 +# +if test $RESTARTED -ge 58 +then + echo "Skip level 57 (Build Mingw32ce gdb)" +else + echo "Level 57 (Build Mingw32ce gdb)" + OK=no +# rm -rf /opt/x86mingw32ce/* && +# rpmbuild -tb /usr/src/rpm/SOURCES/cegcc-mingw32ce-i386-src-$VERSION.tar.gz && OK=yes + if [ $OK = "no" ]; then + echo "Build of Mingw32ce gdb failed, exiting ..." + exit 1 + fi + # + # End level 57 (Build Mingw32ce gdb) + # + RESTARTED=58 + report_status + # +fi +# +# Level 58 +# +if test $RESTARTED -ge 59 +then + echo "Skip level 58 (Build Mingw32ce/i386 gdb)" +else + echo "Level 58 (Build Mingw32ce/i386 gdb)" + OK=no +# rm -rf /opt/x86mingw32ce/* && +# rpmbuild -tb /usr/src/rpm/SOURCES/cegcc-mingw32ce-i386-src-$VERSION.tar.gz && OK=yes + if [ $OK = "no" ]; then + echo "Build of Mingw32ce/i386 gdb failed, exiting ..." + exit 1 + fi + # + # End level 58 (Build Mingw32ce/i386 gdb) + # RESTARTED=60 report_status # fi - # # Level 60 # @@ -390,9 +475,8 @@ # cd /usr/src/rpm/RPMS/i586 FTPFILE=/tmp/lftp-$$ - echo "open upload.sf.net -u ftp,cegcc" >$FTPFILE echo "lcd /usr/src/rpm/RPMS/i586" >>$FTPFILE - echo "cd /incoming" >>$FTPFILE + echo "cd uploads" >>$FTPFILE # # Cope with potentially different file names generated by rpmbuild. # @@ -415,8 +499,8 @@ exit 1 fi echo "put $LIST -o $PREFIX$LIST" >>$FTPFILE - echo "bye" >>$FTPFILE - lftp -f $FTPFILE + echo "quit" >>$FTPFILE + sftp -b $FTPFILE dannybackx,ce...@fr... # # End level 60 (FTP RPM) # @@ -463,9 +547,8 @@ else echo "Level 80 (FTP tar images)" FTPFILE=/tmp/lftp-$$ - echo "open upload.sf.net -u ftp,cegcc" >$FTPFILE echo "lcd /tmp" >>$FTPFILE - echo "cd /incoming" >>$FTPFILE + echo "cd uploads" >>$FTPFILE # if [ "x$LINUXDISTRO" = "x" ]; then PREFIX="" @@ -480,9 +563,9 @@ # # echo "put cegcc-cegcc-src-$VERSION.tar.gz" >>$FTPFILE # echo "put cegcc-mingw32ce-src-$VERSION.tar.gz" >>$FTPFILE - echo "bye" >>$FTPFILE + echo "quit" >>$FTPFILE OK=no - lftp -f $FTPFILE && OK=yes + sftp -b $FTPFILE dannybackx,ce...@fr... && OK=yes if [ $OK = "no" ]; then echo "FTP binary tar failed, exiting..." exit 1 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |