Add toolchain_test.py to naclbuild.py
[nacl-build.git] / buildutils.py
blob0ddd4eb335cfaa7fd2f14e18c164397b6431e7f4
2 # Copyright (C) 2008 Mark Seaborn
4 # chroot_build is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU Lesser General Public License as
6 # published by the Free Software Foundation; either version 2.1 of the
7 # License, or (at your option) any later version.
9 # chroot_build is distributed in the hope that it will be useful, but
10 # WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # Lesser General Public License for more details.
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with chroot_build; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
17 # 02110-1301, USA.
20 def remove_prefix(prefix, string):
21 assert string.startswith(prefix), (prefix, string)
22 return string[len(prefix):]