forked from ungleich-public/cdist
Merge remote-tracking branch 'telmich/master'
This commit is contained in:
commit
5a895480b7
6 changed files with 13 additions and 33 deletions
13
Makefile
13
Makefile
|
@ -170,17 +170,6 @@ $(ML_FILE): $(CHANGELOG_FILE)
|
||||||
ml-release: $(ML_FILE)
|
ml-release: $(ML_FILE)
|
||||||
|
|
||||||
|
|
||||||
################################################################################
|
|
||||||
# Release: Freecode
|
|
||||||
#
|
|
||||||
FREECODE_FILE=.lock-freecode
|
|
||||||
|
|
||||||
$(FREECODE_FILE): $(CHANGELOG_FILE)
|
|
||||||
$(helper) freecode-release $(CHANGELOG_VERSION)
|
|
||||||
touch $@
|
|
||||||
|
|
||||||
freecode-release: $(FREECODE_FILE)
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# pypi
|
# pypi
|
||||||
#
|
#
|
||||||
|
@ -197,7 +186,7 @@ ARCHLINUX_FILE=.lock-archlinux
|
||||||
ARCHLINUXTAR=cdist-$(CHANGELOG_VERSION)-1.src.tar.gz
|
ARCHLINUXTAR=cdist-$(CHANGELOG_VERSION)-1.src.tar.gz
|
||||||
|
|
||||||
$(ARCHLINUXTAR): PKGBUILD
|
$(ARCHLINUXTAR): PKGBUILD
|
||||||
makepkg -c --source
|
umask 022; makepkg -c --source
|
||||||
|
|
||||||
PKGBUILD: PKGBUILD.in $(PYTHON_VERSION)
|
PKGBUILD: PKGBUILD.in $(PYTHON_VERSION)
|
||||||
./PKGBUILD.in $(CHANGELOG_VERSION)
|
./PKGBUILD.in $(CHANGELOG_VERSION)
|
||||||
|
|
|
@ -17,7 +17,13 @@ source=("http://pypi.python.org/packages/source/c/cdist/cdist-\${pkgver}.tar.gz"
|
||||||
package() {
|
package() {
|
||||||
cd cdist-\${pkgver}
|
cd cdist-\${pkgver}
|
||||||
python3 setup.py build install --root="\${pkgdir}"
|
python3 setup.py build install --root="\${pkgdir}"
|
||||||
|
find "\$pkgdir" -type d -exec chmod 0755 {} \;
|
||||||
|
find "\$pkgdir" -type f -exec chmod a+r {} \;
|
||||||
}
|
}
|
||||||
eof
|
eof
|
||||||
|
|
||||||
makepkg -g >> "${outfile}"
|
makepkg -g >> "${outfile}"
|
||||||
|
|
||||||
|
# Fix this issue:
|
||||||
|
# error: failed to upload cdist-3.1.6-1.src.tar.gz: Error - all files must have permissions of 644 or 755.
|
||||||
|
chmod a+r "${outfile}"
|
||||||
|
|
|
@ -145,21 +145,6 @@ eof
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
||||||
freecode-release)
|
|
||||||
version=$1; shift
|
|
||||||
printf "Enter tag list for freecode release %s> " "$version"
|
|
||||||
read taglist
|
|
||||||
|
|
||||||
printf "Enter changelog for freecode release %s> " "$version"
|
|
||||||
read changelog
|
|
||||||
|
|
||||||
echo "Submitting to freecode ..."
|
|
||||||
python2 ~/p/foreign/freecode-submit-2.7/freecode-submit -P cdist \
|
|
||||||
-v "$version" -c "$changelog" \
|
|
||||||
-t "$taglist" \
|
|
||||||
-n
|
|
||||||
;;
|
|
||||||
|
|
||||||
release-git-tag)
|
release-git-tag)
|
||||||
target_version=$($0 changelog-version)
|
target_version=$($0 changelog-version)
|
||||||
if git rev-parse --verify refs/tags/$target_version 2>/dev/null; then
|
if git rev-parse --verify refs/tags/$target_version 2>/dev/null; then
|
||||||
|
@ -258,9 +243,6 @@ eof
|
||||||
# Archlinux release is based on pypi
|
# Archlinux release is based on pypi
|
||||||
make archlinux-release
|
make archlinux-release
|
||||||
|
|
||||||
# Announce change on Freecode
|
|
||||||
make freecode-release
|
|
||||||
|
|
||||||
# Announce change on ML
|
# Announce change on ML
|
||||||
make ml-release
|
make ml-release
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@ EXAMPLES
|
||||||
__cdistmarker
|
__cdistmarker
|
||||||
|
|
||||||
# Creates the marker differently.
|
# Creates the marker differently.
|
||||||
__cdistmarker --file /tmp/cdist_marker --format '+%s'
|
__cdistmarker --destination /tmp/cdist_marker --format '+%s'
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,9 @@ Changelog
|
||||||
* Exception: No braces means author == Nico Schottelius
|
* Exception: No braces means author == Nico Schottelius
|
||||||
|
|
||||||
|
|
||||||
|
3.1.7:
|
||||||
|
* Type __cdistmarker: Fix typo (Ricardo Catalinas Jiménez)
|
||||||
|
|
||||||
3.1.6: 2014-08-18
|
3.1.6: 2014-08-18
|
||||||
* New Type: __ssh_dot_ssh
|
* New Type: __ssh_dot_ssh
|
||||||
* Type __package_yum: Support retrieving package via URL
|
* Type __package_yum: Support retrieving package via URL
|
||||||
|
|
|
@ -50,7 +50,7 @@ else
|
||||||
name="$__object_id"
|
name="$__object_id"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Except dpkg failing, if package is not known / installed
|
# Expect dpkg failing, if package is not known / installed
|
||||||
dpkg -s "$name" 2>/dev/null || exit 0
|
dpkg -s "$name" 2>/dev/null || exit 0
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -64,5 +64,5 @@ SEE ALSO
|
||||||
|
|
||||||
COPYING
|
COPYING
|
||||||
-------
|
-------
|
||||||
Copyright \(C) 2010-2012 Nico Schottelius. Free use of this software is
|
Copyright \(C) 2010-2014 Nico Schottelius. Free use of this software is
|
||||||
granted under the terms of the GNU General Public License version 3 (GPLv3).
|
granted under the terms of the GNU General Public License version 3 (GPLv3).
|
||||||
|
|
Loading…
Reference in a new issue