Creating SDCC release binary archives from snapshot builds

From SDCC wiki
Revision as of 10:32, 4 December 2012 by Borutr (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Linux i386

  • download the linux i386 snaphot binary archive sdcc-snapshot-i386-unknown-linux2.5-yyyymmdd-xxxx.tar.bz2
  • unpack the binary archive:
tar -xjvf sdcc-snapshot-i386-unknown-linux2.5-yyyymmdd-xxxx.tar.bz2
  • remove the sdcc/share/doc directory
rm -rf sdcc/share/doc
  • remove the sdcc/share/sdcc/doc directory
rm -rf sdcc/share/sdcc/doc
  • download the linux i386 snaphot documentation archive sdcc-doc-yyyymmdd-xxxx.tar.bz2
  • unpack the docummentation archive into sdcc/share/sdcc directory
tar -xjvf sdcc-doc-yyyymmdd-xxxx.tar.bz2 -C sdcc/share/sdcc
  • copy INSTALL.txt and README.txt to the sdcc directory
cp sdcc/share/sdcc/doc/INSTALL.txt sdcc/share/sdcc/doc/README.txt sdcc
  • create the Linux i386 release archive
tar -cjvf sdcc-x.x.x-i386-unknown-linux2.5.tar.bz2 sdcc

Mac OS X universal

  • download the linux i386 snaphot binary archive sdcc-snapshot-universal-apple-macosx-yyyymmdd-xxxx.tar.bz2
  • unpack the binary archive:
tar -xjvf sdcc-snapshot-universal-apple-macosx-yyyymmdd-xxxx.tar.bz2
  • repeat steps from 3 to 7 from linux i386
  • create the Mac OS X release archive
tar -cjvf sdcc-x.x.x-universal-apple-macosx.tar.bz2 sdcc


  • unpack WIN32 mingw daily snapshot to a clean directory (the option to create directories should be enabled). A sub directory sdcc is created (referenced as PKGDIR in continuation).
  • remove the PKGDIR/doc/ directory
rm -rf sdcc/doc/
  • unpack to the PKGDIR/doc/ directory
  • copy files sdcc/support/scripts/sdcc.ico and sdcc/support/scripts/sdcc.nsi (this file) from the sdcc Subversion snapshot to the PKGDIR directory
  • copy file COPYING from the sdcc Subversion snapshot to the PKGDIR directory, rename it to COPYING.txt and it to DOS format:
unix2dos COPYING.txt
  • copy readline5.dll to PKGDIR/bin/readline5.dll
  • run NSIS installer from PKGDIR directory:
  • A setup file setup.exe is created in PKGDIR directory. Rename it to sdcc-x.x.x-setup.exe and upload it to sdcc download repository at


Personal tools