From bd45ea3beac54afabf8f224f036dff3b486fb8c6 Mon Sep 17 00:00:00 2001 From: Jens Lody Date: Fri, 14 Aug 2015 20:28:48 +0200 Subject: [PATCH] Add license-text to shell-scripts, make tarball- and spec-file path more general. --- autogen.sh | 25 +++++++++++++++++++++++++ update_revision.sh | 35 +++++++++++++++++++++++++++++++---- 2 files changed, 56 insertions(+), 4 deletions(-) diff --git a/autogen.sh b/autogen.sh index 96150a2..f889a40 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,5 +1,30 @@ #!/bin/bash # Run this to generate all the initial makefiles, etc. +# +# +# Weather extension for GNOME Shell +# - generate Makefiles +# +# Copyright (C) 2012 - 2015 +# Jens Lody , +# +# This file is part of gnome-shell-extension-panel-osd. +# +# gnome-shell-extension-panel-osd 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 3 of the License, or (at your option) +# any later version. +# +# gnome-shell-extension-panel-osd 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 gnome-shell-extension-panel-osd. If not, see +# . +# srcdir=`dirname $0` test -z "$srcdir" && srcdir=. diff --git a/update_revision.sh b/update_revision.sh index f868ddf..a814c66 100755 --- a/update_revision.sh +++ b/update_revision.sh @@ -1,15 +1,40 @@ #!/bin/sh +# +# +# GNOME Shell Extension Panel OSD +# - generate SPEC-,SOURCES- and SRPM-files from latest git-master and move them +# into the appropriate directories +# - you need to check the paths and fix the maintainers name +# +# Copyright (C) 2012 - 2015 +# Jens Lody , +# +# This file is part of gnome-shell-extension-panel-osd. +# +# gnome-shell-extension-panel-osd 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 3 of the License, or (at your option) +# any later version. +# +# gnome-shell-extension-panel-osd 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 gnome-shell-extension-panel-osd. If not, see +# . +# GITHUB="jenslody-gnome-shell-extension-panel-osd" BASE_URL="https://github.com/jenslody/gnome-shell-extension-panel-osd/tarball/master/" -TARBALL_PATH="/home/jens/rpmbuild/SOURCES/" -SPEC_PATH="/home/jens/rpmbuild/SPECS/" +TARBALL_PATH="${HOME}/rpmbuild/SOURCES/" +SPEC_PATH="${HOME}/rpmbuild/SPECS/" SPEC_FILE="gnome-shell-extension-panel-osd.spec" SCRIPT_DIR=`dirname "$0"` -#echo "x${SCRIPT_DIR}x" SCRIPT_DIR=`( cd "$SCRIPT_DIR" && pwd )` -#echo "y${SCRIPT_DIR}y" if test -z "$1"; then @@ -43,6 +68,8 @@ sed "1 s/%global git .*/%global git $COMMIT/" < ${SPEC_FILE}.tmp > ${SPEC_FILE} rpmdev-bumpspec --comment="Fresh git checkout." --userstring="Jens Lody " ${SPEC_FILE} +vi ${SPEC_FILE} + cp ${SPEC_FILE} ${SPEC_PATH}${SPEC_FILE} rm -f ${SPEC_FILE} mv ${SPEC_FILE}.tmp ${SPEC_FILE}