• Home (current)
  • वर्तमान निदेशक => /bin/
  • सूचना एवं अपलोड
    Info Server
Indian Cyber Force
Folders रचयन्तु सञ्चिकां रचयन्तु RansomWeb लॉगआउट
Current File : //bin/what-patch
#!/bin/bash
#
# Copyright 2006-2008 (C) Kees Cook <kees@ubuntu.com>
# Modified by Siegfried-A. Gevatter <rainct@ubuntu.com>
# Modified by Daniel Hahler <ubuntu@thequod.de>
#
# ##################################################################
#
# 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 the Free Software Foundation; either version 3
# of the License, or (at your option) any later version.
#
# This program 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.
#
# See file /usr/share/common-licenses/GPL for more details.
#
# ##################################################################
#
# By default only the name of the patch system is printed.  Verbose mode can be
# enabled with -v.

if [ "$1" = "-h" ] || [ "$1" = "--help" ]
then
	cat <<EOM
Usage: $0 [-v]

Run this inside the source directory of a Debian package and it will detect
the patch system that it uses.

 -v: Enable verbose mode:
     - Print a list of all those files outside the debian/ directory that have
       been modified (if any).
     - Report additional details about patch systems, if available.
EOM
	exit 0
fi

while [ ! -r debian/rules ];
do
	if [ "$PWD" = "/" ]; then
		echo "Can't find debian/rules."
		exit 1
	fi
	cd ..
done

VERBOSE=0
if [ "$1" = "-v" ]
then
	VERBOSE=1
fi

if [ "$VERBOSE" -gt 0 ]; then
	files=`lsdiff -z ../$(dpkg-parsechangelog -SSource)_$(dpkg-parsechangelog -SVersion).diff.gz 2>/dev/null | grep -v 'debian/'`
	if [ -n "$files" ]
	then
		echo "Following files were modified outside of the debian/ directory:"
		echo "$files"
		echo "--------------------"
		echo
		echo -n "Patch System: "
	fi
fi

if grep -qF quilt debian/source/format 2>/dev/null; then
	echo "quilt"
	exit 0
fi

# Do not change the output of existing checks by default, as there are build
# tools that rely on the existing output.  If changes in reporting is needed,
# please check the "VERBOSE" flag (see below for examples).  Feel free
# to add new patchsystem detection and reporting.
for filename in $(echo "debian/rules"; grep ^include debian/rules | grep -vF '$(' | awk '{print $2}')
do
	grep -F patchsys.mk "$filename" | grep -q -v "^#" && {
		if [ "$VERBOSE" -eq 0 ]; then
			echo "cdbs"; exit 0;
		else
			echo "cdbs (patchsys.mk: see 'cdbs-edit-patch')"; exit 0;
		fi
	}
	grep -F quilt "$filename" | grep -q -v "^#" && { echo "quilt"; exit 0; }
	grep -F dbs-build.mk "$filename" | grep -q -v "^#" && {
		if [ "$VERBOSE" -eq 0 ]; then
			echo "dbs"; exit 0;
		else
			echo "dbs (see 'dbs-edit-patch')"; exit 0;
		fi
	}
	grep -F dpatch "$filename" | grep -q -v "^#" && {
		if [ "$VERBOSE" -eq 0 ]; then
			echo "dpatch"; exit 0;
		else
			echo "dpatch (see 'patch-edit-patch')"; exit 0;
		fi
	}
	grep -F '*.diff' "$filename" | grep -q -v "^#" && {
		if [ "$VERBOSE" -eq 0 ]; then
			echo "diff splash"; exit 0;
		else
			echo "diff splash (check debian/rules)"; exit 0;
		fi
	}
done
[ -d debian/patches ] || {
	if [ "$VERBOSE" -eq 0 ]; then
		echo "patchless?"; exit 0;
	else
		echo "patchless? (did not find debian/patches/)"; exit 0;
	fi
}
if [ "$VERBOSE" -eq 0 ]; then
	echo "unknown patch system"
else
	echo "unknown patch system (see debian/patches/ and debian/rules)"
fi
Frontend Submission – Verilere bak
Menu
  • Top 10

Verilere bak

Follow us
  • facebook
  • twitter
Search
Login
Create
Menu

Verilere bak

Login

You are here:

  1. Home
  2. Frontend Submission

Frontend Submission

  • Story

    Mix text with images and embeds

  • Image

    JPG, PNG or GIF

  • Audio

    MP3 or SoundCloud embed, MixCloud, etc.

  • Video

    MP4 or YouTube embed, Vimeo, Dailymotion, etc.

  • Gallery

    A collection of images

  • Embed

    Facebook post, Twitter status, etc.

  • Link

    External site's link

  • Open list

    Everyone can submit new list items and vote up for the best submission

  • Ranked list

    Everyone can vote up for the best list item

  • Classic list

    A list-based article

  • Meme

    Create a funny pic

  • Trivia quiz

    What do you know about ...?

  • Personality quiz

    What type of person are you?

  • Poll

    One or multiple questions about a subject or person

  • Versus

    A poll where each question has two competing answers

  • Hot or Not

    A poll where each question has two opposite answers

Bir yanıt yazın Yanıtı iptal et

E-posta adresiniz yayınlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir

  • facebook
  • twitter

© 2017 bring the pixel. Remember to change this

  • Home
  • Contact us
Back to Top
Close
  • Top 10
  • Home
  • Animals
  • Funny
  • WOW
  • WTF
  • Features
  • facebook
  • twitter
Create

Log In

Sign In

Forgot password?

Forgot password?

Enter your account data and we will send you a link to reset your password.

Back to Login

Your password reset link appears to be invalid or expired.

Log in

Privacy Policy

Accept

Add to Collection

  • Public collection title

  • Private collection title

No Collections

Here you'll find all collections you've created before.

Close
of

Processing files…

Hey Friend!
Before You Go…

Get the best viral stories straight into your inbox before everyone else!

Don't worry, we don't spam

Close

Newsletter

Don’t miss out on new posts!

Don't worry, we don't spam

Close