diff options
author | ene <ene@sils.li> | 2023-04-03 18:45:02 +0200 |
---|---|---|
committer | ene <ene@sils.li> | 2023-04-03 18:45:02 +0200 |
commit | 4dea0028b638b4e3a4c4002ddf8d00e639b142e3 (patch) | |
tree | 61e41b94427ff95290df55769b5c91be7bb9f887 /home-manager/packages/scripts/deprecated/java_compiler/jj | |
parent | Fix(hm/packages/scripts): Add update script (diff) | |
download | nixos-config-4dea0028b638b4e3a4c4002ddf8d00e639b142e3.tar.gz nixos-config-4dea0028b638b4e3a4c4002ddf8d00e639b142e3.zip |
Fix(hm/packages/scripts): Remove deprecated scripts
Diffstat (limited to 'home-manager/packages/scripts/deprecated/java_compiler/jj')
-rwxr-xr-x | home-manager/packages/scripts/deprecated/java_compiler/jj | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/home-manager/packages/scripts/deprecated/java_compiler/jj b/home-manager/packages/scripts/deprecated/java_compiler/jj deleted file mode 100755 index 3f3254ba..00000000 --- a/home-manager/packages/scripts/deprecated/java_compiler/jj +++ /dev/null @@ -1,58 +0,0 @@ -#! /usr/bin/env dash -# shellcheck disable=SC2086 -noColor=yes . ./lib - -help() { -cat << EOF -Add all dirs with trailing / - -\$1 = java .class files dir -\$2 = java .jar files dir - -if you want to update libs delete this: -$wd/libs.cache - -EOF -exit 0 -} - - -class=$(mktemp) -jar=$(mktemp) -pwd=$(pwd) - -mkdir "$pwd"/out/cache 2> /dev/null -wd="$pwd"/out/cache -[ "$1" = "-h" ] && help -[ "$1" = "--help" ] && help - -[ -z "$1" ] && error "no args" && help && exit 1 -[ -z "$2" ] && error "no args" && help && exit 1 - -while IFS= read -r i;do - cp "$i" $wd/"$(basename $i)" -done < "$(tmp "find $1 | sed 1d" )" - -while IFS= read -r i;do - if ! grep "^$i$" "$wd"/libs.cache;then - echo "$i" | sed "s|$2||" >> "$wd"/libs.cache - cd $wd - jar -xf "$pwd"/"$i" - cd $pwd - fi -done < "$(tmp "find $2 | sed 1d" )" - -while IFS= read -r a;do - echo "$a" | sed "s|$wd/||" >> $jar -done < "$(tmp "find $wd | sed 1d")" - - - -cd "$wd" || die "No $wd" -jar -c -f myJar.jar -e Main $(cat $jar | tr '\n' ' ') - -mv myJar.jar "$pwd"/out/myJar.jar - -rm $jar -rm $class -if [ -d /tmp/LIB_FILE_TEMP_DIR/ ];then rm -r /tmp/LIB_FILE_TEMP_DIR/; fi |