pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Disappearing packages from wip : what is the policy
On 9/17/24 01:36, Mayuresh wrote:
Last year's one example was wip/antlr (incidentally it's gone once again)
https://en.houseofclues.world/wg-cgi/marc.info/?l=pkgsrc-
users&m=169875573532426&w=1
I think I had recreated this from scratch and it's gone again.
Packages in a git repo are easy to restore if they've been removed. The
script below should bring back any deleted package instantly.
#!/bin/sh -e
##########################################################################
# Script description:
# Restore a folder following removal and commit
#
# History:
# Date Name Modification
# 2020-04-09 Jason Bacon Begin
##########################################################################
usage()
{
printf "Usage: $0 directory-name\n"
exit 1
}
##########################################################################
# Main
##########################################################################
cwd=$(pwd)
if [ $(basename $cwd) != "wip" ]; then
printf 'Must be run from the wip directory.\n'
exit 1
fi
if [ $# != 1 ]; then
usage
fi
dir=$1
last_rev=$(git rev-list -n 1 HEAD -- $dir)
git checkout ${last_rev}^ -- $dir
--
Life is a game. Play hard. Play fair. Have fun.
Home |
Main Index |
Thread Index |
Old Index