Add license-text to shell-script, make tarball- and spec-file path more general.

merge-requests/218/head
Jens Lody 9 years ago
parent 1f75502316
commit 9d50a947c3
  1. 27
      autogen.sh
  2. 34
      update_revision.sh

@ -1,5 +1,32 @@
#!/bin/bash
# Run this to generate all the initial makefiles, etc.
#
#
# Weather extension for GNOME Shell
# - generate Makefiles
#
# Copyright (C) 2012 - 2015
# Jens Lody <jens@jenslody.de>,
#
# This file is part of gnome-shell-extension-openweather.
#
# gnome-shell-extension-openweather 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-openweather 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-openweather. If not, see
# <http://www.gnu.org/licenses/>.
#
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.

@ -1,9 +1,37 @@
#!/bin/sh
#
#
# Weather extension for GNOME Shell
# - 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 <jens@jenslody.de>,
#
# This file is part of gnome-shell-extension-openweather.
#
# gnome-shell-extension-openweather 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-openweather 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-openweather. If not, see
# <http://www.gnu.org/licenses/>.
#
GITHUB="jenslody-gnome-shell-extension-openweather"
BASE_URL="https://github.com/jenslody/gnome-shell-extension-openweather/tarball/master/"
TARBALL_PATH="/home/jens/rpmbuild/SOURCES/"
SPEC_PATH="/home/jens/rpmbuild/SPECS/"
TARBALL_PATH="~/rpmbuild/SOURCES/"
SPEC_PATH="~/rpmbuild/SPECS/"
SPEC_FILE="gnome-shell-extension-openweather.spec"
SCRIPT_DIR=`dirname "$0"`
@ -43,6 +71,8 @@ sed "1 s/%global git .*/%global git $COMMIT/" < ${SPEC_FILE}.tmp > ${SPEC_FILE}
rpmdev-bumpspec --comment="Fresh git checkout." --userstring="Jens Lody <fedora@jenslody.de>" ${SPEC_FILE}
vi ${SPEC_FILE}
cp ${SPEC_FILE} ${SPEC_PATH}${SPEC_FILE}
rm -f ${SPEC_FILE}
mv ${SPEC_FILE}.tmp ${SPEC_FILE}

Loading…
Cancel
Save