diff options
author | Luke Shumaker <luke@HP-dv6426us-u904.(none)> | 2009-10-25 04:17:09 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-06-26 00:30:17 -0600 |
commit | caa697deb4a74652f767bc50ab5e3e6b176d60a6 (patch) | |
tree | 1ad87aac9f7329413687b0efbac3177bc9cdd42e | |
parent | e3cef0a61116e55fb0f9afe99688a27a7b188889 (diff) |
I think it was treating pkg(thing) like a reg file, rather than a directory
m--------- | pkgthing | 0 | ||||
-rw-r--r-- | pkgthing/main.mk.in | 32 | ||||
-rw-r--r-- | pkgthing/pget.sh | 10 |
3 files changed, 42 insertions, 0 deletions
diff --git a/pkgthing b/pkgthing deleted file mode 160000 -Subproject 506c0c62b3c76b8086313b3f8977b4344838fe5 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" + |