Skip to content

Commit

Permalink
remove freecode support
Browse files Browse the repository at this point in the history
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
  • Loading branch information
Nico Schottelius committed Aug 18, 2014
1 parent eb20e10 commit ec607d6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 30 deletions.
13 changes: 1 addition & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -170,17 +170,6 @@ $(ML_FILE): $(CHANGELOG_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
#
Expand All @@ -197,7 +186,7 @@ ARCHLINUX_FILE=.lock-archlinux
ARCHLINUXTAR=cdist-$(CHANGELOG_VERSION)-1.src.tar.gz

$(ARCHLINUXTAR): PKGBUILD
makepkg -c --source
umask 022; makepkg -c --source

PKGBUILD: PKGBUILD.in $(PYTHON_VERSION)
./PKGBUILD.in $(CHANGELOG_VERSION)
Expand Down
6 changes: 6 additions & 0 deletions PKGBUILD.in
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@ source=("http://pypi.python.org/packages/source/c/cdist/cdist-\${pkgver}.tar.gz"
package() {
cd cdist-\${pkgver}
python3 setup.py build install --root="\${pkgdir}"
find "\$pkgdir" -type d -exec chmod 0755 {} \;
find "\$pkgdir" -type f -exec chmod a+r {} \;
}
eof

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}"
18 changes: 0 additions & 18 deletions bin/build-helper
Original file line number Diff line number Diff line change
Expand Up @@ -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)
target_version=$($0 changelog-version)
if git rev-parse --verify refs/tags/$target_version 2>/dev/null; then
Expand Down Expand Up @@ -258,9 +243,6 @@ eof
# Archlinux release is based on pypi
make archlinux-release

# Announce change on Freecode
make freecode-release

# Announce change on ML
make ml-release

Expand Down

0 comments on commit ec607d6

Please sign in to comment.