]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
added add-gpl
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Fri, 13 Apr 2007 14:42:31 +0000 (14:42 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Fri, 13 Apr 2007 14:42:31 +0000 (14:42 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@340 04377dda-e619-0410-9926-eae83683ac58

trunk/utils/add-gpl [new file with mode: 0755]
trunk/utils/add-slack-required
trunk/utils/convert-template-scheme
trunk/utils/merge-template
trunk/utils/searchpkg

diff --git a/trunk/utils/add-gpl b/trunk/utils/add-gpl
new file mode 100755 (executable)
index 0000000..0a261e2
--- /dev/null
@@ -0,0 +1,33 @@
+#!/bin/bash
+#
+#  add-gpl is free software; you can redistribute it and/or modify it under the
+#  terms of the GNU General Public License as published by the Free Software
+#  Foundation; either version 2 of the License, or any later version.
+#
+#  add-gpl is distributed in the hope that it will be useful, but WITHOUT ANY
+#  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+#  A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
+#
+#  You should have received a copy of the GNU General Public License along with
+#  this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+#  Place - Suite 330, Boston, MA 02111-1307, USA
+#
+# This script should be used to add a license in scripts.
+#
+
+script="SlackBuild"
+#script="build"
+
+for file in `find -name "*.$script"`; do
+
+  echo Changing $file...
+  package="`basename $file .$script`"
+  slackbuild="`basename $file`"
+
+  string="\#\!\/bin\/bash\n\#\n#  $slackbuild is free software; you can redistribute it and\/or modify it under the\n#  terms of the GNU General Public License as published by the Free Software\n#  Foundation; either version 2 of the License, or any later version.\n#\n#  $slackbuild is distributed in the hope that it will be useful, but WITHOUT ANY\n#  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR\n#  A PARTICULAR PURPOSE.  See the GNU General Public License for more details.\n#\n#  You should have received a copy of the GNU General Public License along with\n#  this program; if not, write to the Free Software Foundation, Inc., 59 Temple\n#  Place - Suite 330, Boston, MA 02111-1307, USA"
+
+  sed -e "s/\#\!\/bin\/bash/$string/" $file > $file.new
+  cat $file.new > $file
+  rm $file.new
+
+done
index ede87134921ea4ad8f2fad8e86cf5ac8f7ac1e6d..67804d084a8477d95e37b7438225910ceb422e94 100755 (executable)
@@ -1,5 +1,17 @@
 #!/bin/bash
 #
+#  add-slack-required is free software; you can redistribute it and/or modify
+#  it under the terms of the GNU General Public License as published by the
+#  Free Software Foundation; either version 2 of the License, or any later version.
+#
+#  add-slack-required is distributed in the hope that it will be useful, but WITHOUT
+#  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+#  A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
+#
+#  You should have received a copy of the GNU General Public License along with
+#  this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+#  Place - Suite 330, Boston, MA 02111-1307, USA
+#
 # add slack-required files in an existing repository
 # by rhatto at riseup.net
 #
index 319d215b7b37d2eec3368be5390256a88ce6d995..de7e50759e720dc2ccd2504b7796977d27e979d9 100755 (executable)
@@ -1,5 +1,17 @@
 #!/bin/bash
 #
+#  This software is free software; you can redistribute it and/or modify it under the
+#  terms of the GNU General Public License as published by the Free Software
+#  Foundation; either version 2 of the License, or any later version.
+#
+#  This software is distributed in the hope that it will be useful, but WITHOUT ANY
+#  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+#  A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
+#
+#  You should have received a copy of the GNU General Public License along with
+#  this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+#  Place - Suite 330, Boston, MA 02111-1307, USA
+#
 # script for converting simplepkg templates
 # to the 0.5 own-folder format
 #
index b3eaf5cb89c499c6dfc5ef0c19d02cac2404e20a..3df5f7a2542a0f6323004c96d7b5d34a0903b03c 100755 (executable)
@@ -1,6 +1,16 @@
 #!/bin/bash
 #
-
+#  This software is free software; you can redistribute it and/or modify it under the
+#  terms of the GNU General Public License as published by the Free Software
+#  Foundation; either version 2 of the License, or any later version.
+#
+#  This software is distributed in the hope that it will be useful, but WITHOUT ANY
+#  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+#  A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
+#
+#  You should have received a copy of the GNU General Public License along with
+#  this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+#  Place - Suite 330, Boston, MA 02111-1307, USA
 #
 # tip: to assemble a template from all slack tagfiles:
 #
index 5f272a3dbfa94dbd1dc07b50831968ead3b35af4..cc5a8279dc9e3f3fa764ff48d9b2ec0fd8be3ec0 100755 (executable)
@@ -1,5 +1,17 @@
 #!/bin/bash
 #
+#  This software is free software; you can redistribute it and/or modify it under the
+#  terms of the GNU General Public License as published by the Free Software
+#  Foundation; either version 2 of the License, or any later version.
+#
+#  This software is distributed in the hope that it will be useful, but WITHOUT ANY
+#  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+#  A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
+#
+#  You should have received a copy of the GNU General Public License along with
+#  this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+#  Place - Suite 330, Boston, MA 02111-1307, USA
+#
 # searchpkg: search packages inside a local slackware-like repository
 # this is part of simplepkg
 # feedback: rhatto at riseup.net | gpl