From caa697deb4a74652f767bc50ab5e3e6b176d60a6 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 25 Oct 2009 04:17:09 -0400 Subject: I think it was treating pkg(thing) like a reg file, rather than a directory --- pkgthing | 1 - pkgthing/main.mk.in | 32 ++++++++++++++++++++++++++++++++ pkgthing/pget.sh | 10 ++++++++++ 3 files changed, 42 insertions(+), 1 deletion(-) delete mode 160000 pkgthing create mode 100644 pkgthing/main.mk.in create mode 100644 pkgthing/pget.sh diff --git a/pkgthing b/pkgthing deleted file mode 160000 index 506c0c6..0000000 --- a/pkgthing +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 506c0c62b3c76b8086313b3f8977b4344838fe5e diff --git a/pkgthing/main.mk.in b/pkgthing/main.mk.in new file mode 100644 index 0000000..a2840cd --- /dev/null +++ b/pkgthing/main.mk.in @@ -0,0 +1,32 @@ +#!/usr/bin/make -f +name = pkgthing +ver = +# Copyright (C) 2009 Luke Shumaker +# +# 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 2 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. +# +# You should have received a copy of the GNU General Public License +# along with this program; see the file COPYIN + +# general stuffs ##################################################### +all : pget +.SUFFIXES : +VPATH = $(srcdir) +filelist = \ + COPYING \ + configure \ + Makefile.in \ + pget.sh + +# install ############################################################ +.PHONY : install +install : $(DESTDIR)$(bindir)/pget + diff --git a/pkgthing/pget.sh b/pkgthing/pget.sh new file mode 100644 index 0000000..c0c12fe --- /dev/null +++ b/pkgthing/pget.sh @@ -0,0 +1,10 @@ +#!/bin/sh +name='pget' +ver='1.9.1' + +src=/var/srcdir +cd $src; if [ $? -ne 0 ]; then exit 1; fi +out="`echo "$1" | sed 's@^.*://@@'`" +curl $@ -L -C - --create-dirs -o "$out" +ptranslate "$out" + -- cgit v1.2.3