[pacman-dev] [PATCH] Mac OS X [1] Full path of stat (SIZECMD) and [2] sed -i

Allan McRae allan at archlinux.org
Sun Feb 15 18:59:38 EST 2009


Kevin Barry wrote:

 > This patch changes the way that sed inplace is run in makepkg when
 > running in versionpkg mode. Previous, sed would run with no backup
 > file, called in the GNU way. It seems there is no cross platform
 > method of calling sed inplace with no backup (BSD/sed uses sed -i '',
 > GNU/sed uses sed -i'' or simply sed -i).
 >
 > Instead, this patch creates a backup file (.pkgsave) and removes it
 > after the succesful completion of the sed operation. This means the
 > user should not see the backup file, unless something went run (full
 > hard drive?) in which case they don't lose the PKGBUILD as they would
 > have before.


What does BSD sed currently do?  I am assuming it leaves a backup 
file(s) but can you clarify the numbers and names of these?

Thanks,
Allan




More information about the pacman-dev mailing list