[lasem] tools: add the perl command for mutiline text replace.



commit b39d1cbd702117705be13146f039e0720777ceed
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Fri Apr 23 22:21:45 2010 +0200

    tools: add the perl command for mutiline text replace.

 tools/change-license |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/tools/change-license b/tools/change-license
new file mode 100755
index 0000000..d881486
--- /dev/null
+++ b/tools/change-license
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+perl -pi -e 'BEGIN  {$/=undef;} s/ . This program is free software; you can redistribute it and\/or modify\n . it under the terms of the GNU General Public License as published by\n . the Free Software Foundation; either version 2 of the License, or\n . .at your option. any later version.\n .\n . This program is distributed in the hope that it will be useful,\n . but WITHOUT ANY WARRANTY; without even the implied warranty of\n . MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n . GNU General Public License for more details.\n .\n . You should have received a copy of the GNU General Public License\n . along with this program; if not, write to the Free Software\n . Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA/ * This library is free software; you can redistribute it and\/or\n * modify it under the terms of the GNU Lesser General Public\n * License as published by the Free Software Foundation; either\n * version 2 of the License, o
 r (at your option) any later version.\n *\n * This library is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General\n * Public License along with this library; if not, write to the\n * Free Software Foundation, Inc., 59 Temple Place, Suite 330,\n * Boston, MA 02111-1307, USA./;' *.h



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]