diff options
author | James Turner <jturner@gemini.edu> | 2016-12-13 13:50:48 -0500 |
---|---|---|
committer | James Turner <jturner@gemini.edu> | 2016-12-13 13:50:48 -0500 |
commit | 5ac7369eb14a255c022fd5df1ddabfd667ecb65f (patch) | |
tree | 2a751a5b0a125e105db9b89cf75f986f2a9789ac | |
parent | 0599c6246bf36911f2232491192dec23d0a0035f (diff) | |
download | astroconda-iraf-5ac7369eb14a255c022fd5df1ddabfd667ecb65f.tar.gz |
Remove single-use script & template that were used to help convert Ureka IRAF packages to AstroConda package defs.
-rwxr-xr-x | convert_pkg | 52 | ||||
-rw-r--r-- | template/bld.bat | 2 | ||||
-rw-r--r-- | template/build.sh | 8 | ||||
-rw-r--r-- | template/meta.yaml | 27 | ||||
-rw-r--r-- | template/post-link.sh | 3 | ||||
-rw-r--r-- | template/pre-unlink.sh | 1 | ||||
-rw-r--r-- | template/ur_extern.pkg | 6 | ||||
-rw-r--r-- | template/ur_mkpkg_patterns | 0 |
8 files changed, 0 insertions, 99 deletions
diff --git a/convert_pkg b/convert_pkg deleted file mode 100755 index fa02fbe..0000000 --- a/convert_pkg +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/sh -# -# A semi-disposable script to help convert Ureka IRAF package definitions into -# conda packages. This should be run in the astroconda-iraf repo as -# ./convert_pkg pkgname. It would probably be easy to put this in the Ureka -# scripts/ dir and generalize the paths but the conversion shouldn't need doing -# more than once. - -pkgname=$1 -PKGNAME=$(echo "$1" | tr a-z A-Z) -pkgdir=iraf."$pkgname" -urdefs=/rtfproc/unified_release/ur_work/urel/iraf_packages -uradd=/rtfproc/unified_release/ur_work/urel/addons/irafpkg/build_list -patches=/rtfproc/unified_release/ur_work/tmp_work/patches - -if [ ! -e "$pkgdir" ]; then - - version=$(awk "/[ \t]$pkgname[ \t]/ {print \$3}" "$uradd") - version_us=$(echo "$version" | tr - _) - - urpkg=$urdefs/$pkgname/$version - - fn=$(awk -F '=' '/^tarfile/ {print $2}' $urpkg/ur_conf) - - mkdir "$pkgdir" - sed -e "s|pkgname|$pkgname|" -e "s|PKGNAME|$PKGNAME|" template/meta.yaml \ - -e "s|VERSION|$version_us|" -e "s|FILENAME|$fn|" \ - > "$pkgdir/meta.yaml" - - - for f in bld.bat build.sh post-link.sh pre-unlink.sh; do - cp -p "template/$f" "$pkgdir/" - done - - sed -i -e "s|pkgname|$pkgname|" "$pkgdir/post-link.sh" "$pkgdir/pre-unlink.sh" - - for f in ur_extern.pkg ur_manifest ur_mkhelp_cmd ur_mkpkg_cmd ur_mkpkg_patterns; do - if [ -e "$urpkg/$f" ]; then - cp -p "$urpkg/$f" "$pkgdir/" - fi - done - - sed -i -e '/./,$!d' "$pkgdir/ur_extern.pkg" # no longer need leading space - - (cd /rtfproc/unified_release/scripts; ./convert_patches "$pkgname" "$version") - cp -p "${patches}/${pkgname}/ac.iraf.${pkgname}.patch" "$pkgdir/" - -else - echo "Already exists" >&2 - exit 1 -fi - diff --git a/template/bld.bat b/template/bld.bat deleted file mode 100644 index e1aca7a..0000000 --- a/template/bld.bat +++ /dev/null @@ -1,2 +0,0 @@ -echo Not supported on Windows -exit 1 diff --git a/template/build.sh b/template/build.sh deleted file mode 100644 index 2353907..0000000 --- a/template/build.sh +++ /dev/null @@ -1,8 +0,0 @@ -# Configure the environment for IRAF, since conda build appears not to do -# "source activate" after installing dependencies (this would instead need to -# eval $PREFIX/iraf/unix/hlib/setup directly if "--level" needs specifying): -. setup_iraf.sh - -# Build from source in envs/_build (using build script from astroconda-utils): -ac_build_iraf_pkg - diff --git a/template/meta.yaml b/template/meta.yaml deleted file mode 100644 index d4b2a96..0000000 --- a/template/meta.yaml +++ /dev/null @@ -1,27 +0,0 @@ -about: - home: http://iraf.noao.edu/ - license: IRAF MIT/X11 variant - summary: PKGNAME package for IRAF -build: - binary_relocation: False - number: '0' - # These must be copied from astroconda-iraf-helpers, since conda disallows - # the post-install step from depending on other packages: - always_include_files: - - bin/ac_config_iraf_pkg - - bin/ac_update_extern_pkg -package: - name: iraf.pkgname - version: "VERSION" -source: - fn: FILENAME - url: http://astroconda-source:4440/FILENAME - patches: - - ac.iraf.pkgname.patch -requirements: - build: - - astroconda-iraf-helpers - - iraf !=2.16.1,>=2.16.UR - run: - - iraf !=2.16.1,>=2.16.UR - diff --git a/template/post-link.sh b/template/post-link.sh deleted file mode 100644 index 1056b72..0000000 --- a/template/post-link.sh +++ /dev/null @@ -1,3 +0,0 @@ -# Call a common script that updates extern.pkg for the new IRAF package: - -"$PREFIX/bin/ac_config_iraf_pkg" pkgname diff --git a/template/pre-unlink.sh b/template/pre-unlink.sh deleted file mode 100644 index 2d221ce..0000000 --- a/template/pre-unlink.sh +++ /dev/null @@ -1 +0,0 @@ -"$PREFIX/bin/ac_config_iraf_pkg" --remove pkgname diff --git a/template/ur_extern.pkg b/template/ur_extern.pkg deleted file mode 100644 index 402520f..0000000 --- a/template/ur_extern.pkg +++ /dev/null @@ -1,6 +0,0 @@ -# ftp://iraf.noao.edu/iraf/v216/REPO -reset adccdrom = UR_VDIR -task adccdrom.pkg = adccdrom$adccdrom.cl -reset helpdb= ( envget("helpdb") + ",adccdrom$lib/helpdb.mip" ) -reset aproposdb= ( envget("aproposdb") + ",adccdrom$lib/apropos.db" ) - diff --git a/template/ur_mkpkg_patterns b/template/ur_mkpkg_patterns deleted file mode 100644 index e69de29..0000000 --- a/template/ur_mkpkg_patterns +++ /dev/null |