desktop-file-utils: remove unnecessary package helper.
This commit is contained in:
parent
bc80830fb1
commit
81c84e6778
1 changed files with 21 additions and 6 deletions
|
|
@ -1,7 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# Copyright (C) 2011 Rubén Rodríguez <ruben@trisquel.info>
|
# Copyright (C) 2024 Luis Guzmán <ark@switnet.org>
|
||||||
# Copyright (C) 2021 Pablo Correa Gómez <ablocorrea@hotmail.com>
|
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
|
@ -18,13 +17,29 @@
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
#
|
#
|
||||||
|
|
||||||
VERSION=2
|
# Placeholder helper, remove or update according latest removal policy on new distro.
|
||||||
|
VERSION=0
|
||||||
|
BUILD_UNTIL=12.0
|
||||||
|
|
||||||
. ./config
|
. ./config
|
||||||
|
|
||||||
#% Replace default applications in /usr/share/applications/defaults.list (makes icecat appear in gnome-default-applications-properties)
|
# Lower version and remove trisquel suffix to prevent update issues on further actions.
|
||||||
sed 's/firefox/abrowser/g; s/snap-store_ubuntu-software-local-file/gdebi/g; s/banshee/vlc.desktop/g;' -i debian/defaults.list
|
export FULLVERSION="$(sed "s|trisquel$VERSION||" <<< $FULLVERSION)"
|
||||||
|
new_build=$(( ${FULLVERSION: -1} - 1 ))
|
||||||
|
export FULLVERSION=("${FULLVERSION%?}$new_build")
|
||||||
|
|
||||||
changelog "Rebranded for Trisquel"
|
# Deprecated helper
|
||||||
|
|
||||||
|
# Custom changelog.
|
||||||
|
changelog(){
|
||||||
|
head -n 1 debian/changelog | grep -q $UPSTREAM-security && REPO=$CODENAME-security || REPO=$CODENAME
|
||||||
|
[ "$SECURITY" = true ] && REPO=${CODENAME}-security
|
||||||
|
[ "$BACKPORT" = true ] || [ "$BACKPORTS" = true ] && REPO=${CODENAME}-backports
|
||||||
|
echo | dch -b -D $REPO -v $FULLVERSION "$1"
|
||||||
|
# Make sure the changelog file is identical between archs
|
||||||
|
/bin/sed "/-- Trisquel/s/.*/ -- Trisquel GNU\/Linux developers <trisquel-devel@listas.trisquel.info> $DATE/" -i debian/changelog
|
||||||
|
}
|
||||||
|
|
||||||
|
changelog "Set lower version on placeholder package."
|
||||||
|
|
||||||
package
|
package
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue