### HOWTO porting new parted ###

1.	git add offical http://git.savannah.gnu.org/cgit/parted.git
2.	git fetch offical
3.	clean the .gitinore (echo "" > .gitinore)
4.	rm files which in FileList if we not modify those files
	(rm -rf ABOUT-NLS ChangeLog GNUmakefile INSTALL Makefile.in aclocal.m4 build-aux/ configure debug/Makefile.in debug/test/Makefile.in doc/C/Makefile.in doc/Makefile.in doc/pt_BR/Makefile.in include/Makefile.in include/parted/Makefile.in lib/ libparted/Makefile.in libparted/fs/Makefile.in libparted/fs/amiga/Makefile.in libparted/fs/ext2/Makefile.in libparted/fs/fat/Makefile.in libparted/fs/hfs/Makefile.in libparted/fs/jfs/Makefile.in libparted/fs/linux_swap/Makefile.in libparted/fs/nilfs2/Makefile.in libparted/fs/ntfs/Makefile.in libparted/fs/reiserfs/Makefile.in libparted/fs/ufs/Makefile.in libparted/fs/xfs/Makefile.in libparted/labels/Makefile.in libparted/tests/Makefile.in m4/ maint.mk parted.spec parted/Makefile.in partprobe/Makefile.in tests/Makefile.in)

5.	download tar.xz from http://ftp.gnu.org/gnu/parted/
	a. the tar.gz file contain Makefil.xxx, configure.xxx, lib/*, ....., which are build process needed
	b. the other files will be overwriten, checkout the parts which are modified by synology
6.	remove those header files which are listed on .gitinore (include/parted/*.h)
	(rm include/parted/constraint.h include/parted/crc32.h include/parted/debug.h include/parted/device.h include/parted/disk.h include/parted/endian.h include/parted/exception.h include/parted/fdasd.h include/parted/filesys.h include/parted/geom.h include/parted/natmath.h include/parted/parted.h include/parted/timer.h include/parted/unit.h include/parted/vtoc.h)

6.	modify configure.ac Makefile.am parted/Makefile.am partprobe/Makefile.am to save as .syno(ex: configure.ac.syno)
	(base on master branch diff, ex: vimdiff configure.ac configure.ac.syno)
7.	modify libparted/labels/Makefile.am and libparted/labels/Makefile.in to save as .uclibc for junior (ex: libparted/labels/Makefile.in.uclibc)
	(base on master branch)
8.	the "DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/lib" in sparted/Makefile.in
	may cause build fail. You should modify it to "DEFAULT_INCLUDES = -I.@am__isrc@"
9.	git rebase <offical branch tag>(ex v3.2)
10.	Test and happy check in

(optional)
1.	remove Makefile dependence in all Makefile.in.syno (including subdir)
	EX:
		Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
		modify to
		Makefile:

